<< Click to display table of contents >> TFontInfos.FindStyleWithFontSize |
Searches for style having the specified font size.
function FindStyleWithFontSize(BaseStyle: Integer;
Size: TRVFontSize): Integer;
(Introduced in version 1.3)
Searches for style having all properties of the BaseStyle-th style, but font Size=Size.
This method does not return items having odd values of SizeDouble.
BaseStyle is an index in Items.
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; the most universal method is FindSuchStyle;
▪TFontInfo.IsEqual.