ClassDocumentElementCollection<T, TOwner>
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
DocumentElementCollection(TOwner)
Construct a collection bound to the specified owner for managing child elements with enforced parent–child relationships.
Declaration
public DocumentElementCollection(TOwner parent)
Parameters
parent
TOwner
The parent element that owns this collection.
Methods
SetParent(T, TOwner)
Establishes the parent-child relationship between a document element and its parent container.
Declaration
protected override void SetParent(T item, TOwner parent)
Parameters
item
T
The document element to set the parent for.
parent
TOwner
The parent container to assign to the document element.
Overrides
VerifyDocumentElementOnInsert(T)
Validates that a document element can be safely added to the collection by checking its parent associations.
Declaration
protected override void VerifyDocumentElementOnInsert(T item)
Parameters
item
T
The document element to validate before insertion.
Overrides