rvico TRichView Reference | TRVStyle | TParaInfos


Top  Previous  Next

Searches for style having the specified alignment

function FindStyleWithAlignment(BaseStyle: Integer; 

  Alignment: TRVAlignment): Integer;

(Introduced in version 1.5)

Searches for style having all properties of the BaseStyle-th style, but Alignment=Alignment.

BaseStyle is an index in Items.

The following properties are ignored when comparing styles:


StyleName (if RichViewCompareStyleNames=False (default)).

Return value:

Index of style or -1, if not found.

See also methods:


TRichView © trichview.com