Applies to
Declaration
property SelStyle: TFontStyles;
Description
The SelStyle property returns the font style at the current editing place. The return value is a set of extended font styles that possibly includes fsHighlight and fsAltFont as additional members over the standard TFontStyles. SelStyle will include fsHighlight if the caret is at a place where there is color highlight. fsAltFont will be included in the result if the place where the caret is located is marked with alternate font attribute.
This property is accessible at run time and is read only.
Inquiring for fsHighlight or fsAltFont must be done by typecasting SelStyle to a TPlusFontStyles type, like this:
IsHighlight:= TPlusFontStyle(fsAltFont) in TPlusFontStyles(PlusMemo1.SelStyle);
Note that fsHighlight, fsAltFont and TPlusFontStyles are defined in unit PMSupport.pas. You need to have PMSupport in your uses clause for access to these constants and type.
See also
SelContext property