|Top Previous Next|
TRVStyleTemplate = class(TCollectionItem)
(introduced in version 14)
▪Kind – kind of this style templates (defines it applicability to text or paragraphs);
▪Name – unique name;
▪Id – unique identifier;
▪ParentId – a reference to a parent style template;
▪NextId – a reference to a style template for following paragraphs;
▪QuickAccess – recommends to provide a quick access to this style template in applications UI.
▪UpdateModifiedTextStyleProperties fills the set of properties of the specified text style that were changed after applying this style template;
▪UpdateModifiedParaStyleProperties fills the set of properties of the specified paragraph style that were changed after applying this style template;
▪ApplyToTextStyle applies this style template to the specified text style;
▪ApplyToParaStyle applies this style template to the specified paragraph style.
Each style template has two properties having unique values: Id and Name. Id is read-only, is assigned automatically, the collection provides its uniqueness. Name is assigned by the user, you (the programmer) must provide its uniqueness.
Name is used when merging style templates of two different documents.
Unlike items in TRVStyle.TextStyles and TRVStyle.ParaStyles, style templates are never referred by their index in the collection (except for indices returned after searching by a name or an identifier, and the editor methods for applying to the selection).
TRichView © trichview.com