<< Click to display table of contents >> TRVStyleTemplateCollection.ClearTextFormat, ClearParaFormat |
The methods reset formatting of the specified text/paragraph attributes (styles).
procedure ClearTextFormat(ATextStyle: TCustomRVFontInfo);
procedure ClearParaFormat(AParaStyle: TCustomRVParaInfo);
ClearTextFormat clears formatting from ATextStyle. The method resets all its properties to default values, then:
▪if ATextStyle is TFontInfo, and ATextStyle.Jump=True, and "Hyperlink" style template exists in Items, the method applies it to ATextStyle;
▪otherwise, the method assigns ATextStyle.StyleTemplateId = -1.
ClearParaFormat clears formatting from AParaStyle. The method resets all its properties to default values, then:
▪if "Normal" style template exists in Items, the method applies it to AParaStyle;
▪otherwise, the method assigns AParaStyle.StyleTemplateId = -1.