|
<< Click to display table of contents >> TRVEditHelper.GetTextStyleFromEditor |
Sets TextStyle and ValidTextProperties according to the properties of the current selection in AEditor.
procedure GetTextStyleFromEditor(
AEditor: TCustomRichViewEdit;
AProcessSelection: Boolean);
If AProcessSelection = False, TextStyle is filled with the properties of the current text style, and ValidTextProperties is filled with all properties.
If AProcessSelection = True, after the method returns, ValidTextProperties contains the properties that have the same values for all selected text. The corresponding values are assigned to TextStyle.
This method can be useful for updating the application's user interface.