ImageEn, unit iexRichEdit

TIERichEdit.AddFormattedText

TIERichEdit.AddFormattedText


Declaration

procedure AddFormattedText(const NewText: string; const AFont: TFont = nil); overload;
procedure AddFormattedText(const NewText: string; FontStyle: TFontStyles; const FontName: string; const FontColor: TColor; FontHeight: Integer); overload;


Description

Add formatted text to the end of the content.


Example

// Add Bold red text
IERichEdit1.AddFormattedText( 'RED TEXT', [fsBold], 'Tahoma', clRed, 18 );