Base collection for document elements that enforces parent-child relationships, validates document ownership, and supports cloning operations.
Definition
Namespace:Telerik.Windows.Documents.Flow.Model.Collections
Assembly:Telerik.Windows.Documents.Flow.dll
Type Parameters:
T
The type of the document elements in the collection.
TOwner
The type of the owner.
Syntax:
public class DocumentElementCollection<T, TOwner> : DocumentElementCollectionBase<T, TOwner>, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable where T : DocumentElementBase where TOwner : DocumentElementBase
Inheritance: objectDocumentElementCollectionBase<T, TOwner>DocumentElementCollection<T, TOwner>
Derived Classes:
Implements:
Inherited Members
Methods
Assigns the specified parent to the document element, establishing the parent-child relationship in the document tree.
protected override void SetParent(T item, TOwner parent)
The document element.
parentTOwnerThe parent which should be set to the document element.
Overrides:
Validates that the element belongs to the same document as the owner and has no existing parent before allowing insertion.
protected override void VerifyDocumentElementOnInsert(T item)
The item.
Overrides: