[]
Manages undo and redo operations for the ActiveReports designer.
public sealed class UndoManager : IDisposable
<p>
The UndoManager class encapsulates the functionality required to manage a history of operations performed in the ActiveReports designer, allowing users to undo and redo actions. This class interacts with an underlying undo engine to track changes and manage the undo/redo stack.
It provides methods to perform undo and redo operations, query the count of operations available for undo and redo, and retrieve descriptions of these operations for display in a user interface. The class also supports clearing the undo/redo history and raises events to notify subscribers when changes occur in the history.
This class implements the IDisposable interface to properly release resources associated with the undo engine.
Name | Description |
---|---|
RedoCount | Gets the number of actions currently available in the redo stack. |
UndoCount | Gets the number of actions currently stored in the undo stack. |
Name | Description |
---|---|
Clear() | Empties both the undo and redo stacks, effectively resetting the history. |
Dispose() | Releases all resources used by the UndoManager. |
Redo() | Reapplies the most recently undone operation from the redo stack. |
RedoDescription(int) | Retrieves a description of the specified redo action in a human-readable format. |
Undo() | Reverses the most recent operation in the undo stack. |
UndoDescription(int) | Retrieves a description of the specified undo action in a human-readable format. |
Name | Description |
---|---|
Changed | Occurs when a change is made to the undo or redo stack, indicating that the state of the report has changed. |