Class DocumentElementCollection<T, TOwner>
Base collection for document elements that enforces parent-child relationships, validates document ownership, and supports cloning operations.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Flow.Model.Collections
Assembly: Telerik.Windows.Documents.Flow.dll
Syntax
public class DocumentElementCollection<T, TOwner> : DocumentElementCollectionBase<T, TOwner>, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable where T : DocumentElementBase where TOwner : DocumentElementBase
Type Parameters
|
T
The type of the document elements in the collection. |
|
TOwner
The type of the owner. |
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
|
T
item
The document element. |
|
TOwner
parent
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
|
T
item
The item. |