ClassDocumentElementBase
Base class for all elements in a flow document, providing parent-child navigation and hierarchical traversal.
Definition
Namespace:Telerik.Windows.Documents.Flow.Model
Assembly:Telerik.Windows.Documents.Flow.dll
Syntax:
public abstract class DocumentElementBase
Inheritance: objectDocumentElementBase
Derived Classes:
Properties
Document
Gets the root document that owns this element.
Declaration
public virtual RadFlowDocument Document { get; }
Property Value
The document.
Parent
Gets the immediate parent element in the document hierarchy.
Declaration
public DocumentElementBase Parent { get; }
Property Value
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
IEnumerable<T>
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
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
child
The child element.