book_4_sparkGenerated
code_blocksInput

Description

The Forward property in the UndoSystem class represents a stack of Entry objects that are used to manage redo operations. This stack is cleared whenever a new undo action is added to the system, ensuring that the redo history is reset and only valid redo actions are available.

Usage

Use the Forward property to access the stack of redo entries. This property is typically used internally by the UndoSystem to manage redo operations. When a new undo action is added, the Forward stack is cleared to maintain the integrity of the undo/redo sequence.

Example

// Example of accessing the Forward stack
var undoSystem = new UndoSystem();

// Access the Forward stack
var forwardStack = undoSystem.Forward;

// Check if there are any redo actions available
if (forwardStack.Count > 0)
{
    // There are redo actions available
    // You can iterate over the stack or perform operations as needed
}