TRVStyleTemplateCollection.AssignStyleTemplates

<< Click to display table of contents >>

TRVStyleTemplateCollection.AssignStyleTemplates

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.