Class
BoxParentsStack

Represents a stack of box parents in the document structure. This class is used to manage and access the hierarchical structure of box elements.

Definition

Namespace:Telerik.Windows.Documents.DocumentStructure

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class BoxParentsStack

Inheritance: objectBoxParentsStack

Constructors

BoxParentsStack()

Declaration

cs-api-definition
public BoxParentsStack()

Properties

IsEmpty

Gets a value indicating whether the stack of box parents is empty.

Declaration

cs-api-definition
public bool IsEmpty { get; }

Property Value

bool

Methods

GetEnumerator()

Returns an enumerator that iterates through the collection of box parents.

Declaration

cs-api-definition
public Stack<LayoutBox>.Enumerator GetEnumerator()

Returns

Stack<LayoutBox>.Enumerator

An enumerator that can be used to iterate through the box parents collection.

Peek()

Retrieves the top item of the BoxParentsStack without removing it.

Declaration

cs-api-definition
public LayoutBox Peek()

Returns

LayoutBox

The top item of the stack, or null if the stack is empty.

Pop()

Removes and returns the top item from the stack of box parents.

Declaration

cs-api-definition
public LayoutBox Pop()

Returns

LayoutBox

The top item from the stack of box parents. If the stack is empty, the method returns the default value for the type T, where T is the type of the items in the stack.

Push(LayoutBox)

Pushes a specified LayoutBox onto the stack of box parents.

Declaration

cs-api-definition
public void Push(LayoutBox item)

Parameters

item

LayoutBox

The LayoutBox to be added to the stack.