TRVEditHelper.GetParaStyleFromEditor

<< Click to display table of contents >>

TRVEditHelper.GetParaStyleFromEditor

Sets ParaStyle and ValidParaProperties according to the properties of the current selection in AEditor.

procedure GetParaStyleFromEditor(
  AEditor: TCustomRichViewEdit;
  AProcessSelection: Boolean);

If AProcessSelection = False, ParaStyle is filled with the properties of the current paragraph style, and ValidParaProperties is filled with all properties.

If AProcessSelection = True, after the method returns, ValidParaProperties contains the properties that have the same values in all selected paragraphs. The corresponding values are assigned to ParaStyle.

This method can be useful for updating the application's user interface.