rvico TRichView Reference | TRVStyle | TParaInfos

TParaInfos.FindSuchStyle

Top  Previous  Next

Searches for style.

function FindSuchStyle(BaseStyle: Integer; Style: TParaInfo;

  Mask: TRVParaInfoProperties): Integer;

(Introduced in version 1.5)

Searches for style having properties like Style.

The BaseStyle-th style is checked first. BaseStyle is an index in Items.

Mask is a set of properties to compare (other properties are ignored).

The following properties are ignored when comparing styles:

Standard;
StyleName (if RichViewCompareStyleNames=False (default)).

Return value:

Index of style or -1, if not found.

See also methods:

FindStyleWithAlignment;
TParaInfo.IsEqual;
TFontInfos.FindSuchStyle;
TRVListInfos.FindSuchStyle.

Demos:

Demos\Delphi\Editors\Editor 2\
Demos\CBuilder\Editors\Editor 2\

(see procedure TForm1.rveParaStyleConversion, rve.OnParaStyleConversion event)


RichView © Sergey Tkachenko