Click or drag to resize

IUndoRedoManagerT Methods

The IUndoRedoManagerT type exposes the following members.

Methods
 NameDescription
Public methodClear Clear the entire undo and redo stacks.
Public methodCompoundDo Pushes mementos into the undo stack, any time the state of Subject changes.
Public methodDo(IListIMementoT) Pushes mementos into the undo stack, any time the state of Subject changes.
Public methodDo(IMementoT) Pushes an memento into the undo stack, any time the state of Subject changes.
Public methodPeekRedo Gets, without removing, the top memento on the redo stack.
Public methodPeekUndo Gets, without removing, the top memento on the undo stack.
Public methodRedo Restores the subject to the next state on the redo stack, and stores the state before redoing to undo stack. Method CanRedo can be called before calling this method.
Public methodUndo Restores the subject to the previous state on the undo stack, and stores the state before undoing to redo stack. Method CanUndo can be called before calling this method.
Top
See Also