ClassBoxParentsStack
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
BoxParentsStack()
Declaration
public BoxParentsStack()
Properties
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection of box parents.
Declaration
public Stack<LayoutBox>.Enumerator GetEnumerator()
Returns
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
public LayoutBox Peek()
Returns
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
public LayoutBox Pop()
Returns
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.