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.
Inheritance
Namespace: Telerik.Windows.Documents.DocumentStructure
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class BoxParentsStack : Object
Constructors
BoxParentsStack()
Declaration
public BoxParentsStack()
Properties
IsEmpty
Gets a value indicating whether the stack of box parents is empty.
Declaration
public bool IsEmpty { get; }
Property Value
|
System.Boolean
|
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection of box parents.
Declaration
public Stack<LayoutBox>.Enumerator GetEnumerator()
Returns
|
System.Collections.Generic.Stack.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
public LayoutBox Peek()
Returns
|
LayoutBox
The top item of the stack, or |
Pop()
Removes and returns the top item from the stack of box parents.
Declaration
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
public void Push(LayoutBox item)
Parameters
|
LayoutBox
item
The LayoutBox to be added to the stack. |