Class
DocumentElementBase

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:

cs-api-definition
public abstract class DocumentElementBase

Inheritance: objectDocumentElementBase

Derived Classes: BlockBaseBlockContainerBaseInlineBaseRadFlowDocumentTableRow

Properties

Document

Gets the root document that owns this element.

Declaration

cs-api-definition
public virtual RadFlowDocument Document { get; }

Property Value

RadFlowDocument

The document.

Parent

Gets the immediate parent element in the document hierarchy.

Declaration

cs-api-definition
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

cs-api-definition
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

cs-api-definition
protected virtual void OnChildAdded(DocumentElementBase child)

Parameters

child

DocumentElementBase

The child element.

OnChildRemoved(DocumentElementBase)

Called when a child element is removed from this container, allowing derived classes to respond to hierarchy changes.

Declaration

cs-api-definition
protected virtual void OnChildRemoved(DocumentElementBase child)

Parameters

child

DocumentElementBase

The child element.