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:
public class BoxParentsStack
Inheritance: objectBoxParentsStack
Constructors
public BoxParentsStack()
Properties
Methods
Returns an enumerator that iterates through the collection of box parents.
public Stack<LayoutBox>.Enumerator GetEnumerator()
An enumerator that can be used to iterate through the box parents collection.
Retrieves the top item of the BoxParentsStack without removing it.
public LayoutBox Peek()
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.
public LayoutBox Pop()
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.