Click or drag to resize

IMcUndoStack Methods

The IMcUndoStack type exposes the following members.

Methods
  NameDescription
Public methodFlush
Drops all states in the Undo stack, and the Redo stack
Public methodPopRedo
Drops the top state of the Redo stack without performing the redo
Public methodPopUndo
Drops the top state of the Undo stack without performing the undo
Public methodCode examplePush
Saves the state of an undoable object for a future Undo operation.
Public methodRedo
Will save the undoable on top of the Undo stack, update the undoable with the top of the Redo stack, and drop the top of the Redo stack. The operation will fail if the Redo stack is empty. This function will fire two events: AboutToRedo and RedoDone.
Public methodUndo
Will save the undoable on top of the Redo stack, update the undoable with the top of the Undo stack, and drop the top of the Undo stack. This function will fire two events: AboutToUndo and UndoDone.
Top
See Also