Generic collection for document elements that enforces parent–child relationships and safe insertion into an owning container.
Definition
Namespace:Telerik.Windows.Documents.Fixed.Model.Collections
Assembly:Telerik.Windows.Documents.Fixed.dll
Type Parameters:
T
The type of document elements contained in the collection.
TOwner
The type of the owner element that contains this collection.
Syntax:
public class DocumentElementCollection<T, TOwner> : DocumentElementCollectionBase<T, TOwner>, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable where T : FixedDocumentElementBase where TOwner : IFixedDocumentElement
Inheritance: objectDocumentElementCollectionBase<T, TOwner>DocumentElementCollection<T, TOwner>
Derived Classes:
Implements:
Inherited Members
Constructors
Construct a collection bound to the specified owner for managing child elements with enforced parent–child relationships.
public DocumentElementCollection(TOwner parent)
The parent element that owns this collection.
Methods
Establishes the parent-child relationship between a document element and its parent container.
protected override void SetParent(T item, TOwner parent)
The document element to set the parent for.
parentTOwnerThe parent container to assign to the document element.
Overrides:
Validates that a document element can be safely added to the collection by checking its parent associations.
protected override void VerifyDocumentElementOnInsert(T item)
The document element to validate before insertion.
Overrides: