New to Telerik UI for WinForms? Start a free 30-day trial

Maintains the stack of layout boxes active during document-structure traversal.

Definition

Namespace:Telerik.WinForms.Documents.DocumentStructure

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class BoxParentsStack

Inheritance: objectBoxParentsStack

Constructors

Initializes an empty stack of layout boxes.

C#
public BoxParentsStack()

Properties

Gets whether the stack contains no layout boxes.

C#
public bool IsEmpty { get; }

Methods

Gets an enumerator that visits boxes from the top of the stack toward the bottom.

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

Stack<LayoutBox>.Enumerator

A stack enumerator over the active layout boxes.

Gets the most recently pushed layout box without removing it.

C#
public LayoutBox Peek()
Returns:

LayoutBox

The layout box at the top of the stack.

Exceptions: InvalidOperationException

The stack is empty.

Removes and returns the most recently pushed layout box.

C#
public LayoutBox Pop()
Returns:

LayoutBox

The layout box removed from the top of the stack.

Exceptions: InvalidOperationException

The stack is empty.

Adds a layout box to the top of the stack.

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

The layout box to add.