|
TFontInfos.FindSuchStyle |
Top Previous Next |
|
Searches for style. function FindSuchStyle(BaseStyle: Integer; Style: TFontInfo; Mask: TRVFontInfoProperties): Integer; (Introduced in version 1.3) 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: ▪other TFontInfos.Find*** methods; ▪TFontInfo.IsEqual; ▪TParaInfos.FindSuchStyle; ▪TRVListInfos.FindSuchStyle. Demos: ▪Demos\Delphi\Editors\Editor 2\ ▪Demos\CBuilder\Editors\Editor 2\ (see procedure TForm1.rveStyleConversion, rve.OnStyleConversion event) |