rvico TRichView Reference | TRVStyle | TRVStyleTemplateCollection

TRVStyleTemplateCollection.AssignStyleTemplates

Top  Previous  Next

Copies items from Source to this collection.

procedure AssignStyleTemplates(Source: TRVStyleTemplateCollection; CopyIds: Boolean);

If CopyIds=True, Id properties of Source.Items are copied to new items.

If CopyIds=False, the method generates new Id for new items, retaining NextId and ParentId relations.

Note:

StyleTemplates1.Assign(StyleTemplates2) is equivalent to StyleTemplates1.AssignStyleTemplates(StyleTemplates2, False).

See also:

TCustomRichViewEdit.ChangeStyleTemplates.


TRichView © trichview.com