Applies to
Declaration
procedure SetAltFont;
procedure SetBold;
procedure SetHighlight;
procedure SetItalic;
procedure SetUnderline;
Description
These methods are used to apply static formatting to selected text. If no text is selected, subsequent typing at the current editing location will have the style specified by these methods. These methods are effective only if StaticFormat is set to True. Note that it is False by default.
More precisely, they act as toggle for individual styles:
SetAltFont makes the selected text use the alternate font specified by the AltFont property;
SetBold toggles the bold attribute for the selection;
SetHighlight toggles color highlighting. The highlight colors are specified with the HighlightColor and HighlightBackgnd properties;
SetItalic toggles the italic attribute;
SetUnderline toggles underline.