Class UndoManager

UndoManager class

Encapsulates the object that manages the undo/redo operations.

public class UndoManager

Properties

NameDescription
Enabled { get; set; }Gets or sets a value indicating whether the Undo function is enabled. The default value is false.
RedoStepsCount { get; }Gets the current available redo steps count.
UndoStackSize { get; set; }Gets or sets the undo/redo stack size. The default value is 300.
UndoStepsCount { get; }Gets the current available undo steps count.

Methods

NameDescription
BeginChanges()Begins to record changes.
BeginMark()Begins to mark changes.
ClearStack()Clears the Undo and Redo stacks.
EndChanges()Ends to record changes.
EndMark()Ends to mark changes.
Redo()Performs a redo operation.
RedoMark()Performs a redo operation with mark.
Undo()Performs an undo operation.
UndoMark()Performs an undo operation with mark.

See Also