Class DocumentElementBase
Base class for all elements in a flow document, providing parent-child navigation and hierarchical traversal.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Flow.Model
Assembly: Telerik.Windows.Documents.Flow.dll
Syntax
public abstract class DocumentElementBase
Properties
Document
Gets the root document that owns this element.
Declaration
public virtual RadFlowDocument Document { get; }
Property Value
|
RadFlowDocument
The document. |
Parent
Gets the immediate parent element in the document hierarchy.
Declaration
public DocumentElementBase Parent { get; }
Property Value
|
DocumentElementBase
The parent. |
Methods
EnumerateChildrenOfType<T>()
Recursively enumerates all descendant elements of the specified type in the document tree.
Declaration
public IEnumerable<T> EnumerateChildrenOfType<T>()
where T : DocumentElementBase
Returns
|
System.Collections.Generic.IEnumerable<T>
|
Type Parameters
|
T
The type. |
OnChildAdded(DocumentElementBase)
Called when a child element is added to this container, allowing derived classes to respond to hierarchy changes.
Declaration
protected virtual void OnChildAdded(DocumentElementBase child)
Parameters
|
DocumentElementBase
child
The child element. |
OnChildRemoved(DocumentElementBase)
Called when a child element is removed from this container, allowing derived classes to respond to hierarchy changes.
Declaration
protected virtual void OnChildRemoved(DocumentElementBase child)
Parameters
|
DocumentElementBase
child
The child element. |