<< Click to display table of contents >> TRVListInfos.FindSuchStyle |
Searches for the style. Adds if not found (optionally)
function FindSuchStyle(Style: TRVListInfo;
AddIfNotFound: Boolean): Integer;
This method searches for the style having all properties of Style.
If AddIfNotFound=True and style is not found, it adds a new style to the end of collection and assigns all properties of Style to it. The created style has Standard property = False.
The following properties are ignored when comparing styles:
▪Standard;
▪StyleName (if RichViewCompareStyleNames=False (default)).
Return value:
Index of style, or -1 if not found (and not added).
See also:
▪TFontInfos.FindSuchStyle;
▪TParaInfos.FindSuchStyle.