ClassDocumentElementCollection<T, TOwner>
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
SetParent(T, TOwner)
Assigns the specified parent to the document element, establishing the parent-child relationship in the document tree.
Declaration
protected override void SetParent(T item, TOwner parent)
Parameters
item
T
The document element.
parent
TOwner
The parent which should be set to the document element.
Overrides
VerifyDocumentElementOnInsert(T)
Validates that the element belongs to the same document as the owner and has no existing parent before allowing insertion.
Declaration
protected override void VerifyDocumentElementOnInsert(T item)
Parameters
item
T
The item.
Overrides