New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class BoxParentsStack

Inheritance: objectBoxParentsStack

Constructors

C#
public BoxParentsStack()

Properties

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

C#
public bool IsEmpty { get; }

Methods

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

C#
public Stack<LayoutBox>.Enumerator GetEnumerator()
Returns:

Stack<LayoutBox>.Enumerator

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

Retrieves the top item of the BoxParentsStack without removing it.

C#
public LayoutBox Peek()
Returns:

LayoutBox

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

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

C#
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.

Pushes a specified LayoutBox onto the stack of box parents.

C#
public void Push(LayoutBox item)
Parameters:itemLayoutBox

The LayoutBox to be added to the stack.