The UndoManager type exposes the following members.

Constructors

  NameDescription
UndoManager
Initializes a new instance of the UndoManager.

Methods

  NameDescription
CancelLastSnapshot
Removes the last snapshot from the undo stack, and restores the redo stack.
CanRedo
Returns true if this UndoManager can currently perform a redo. returns false otherwise.
CanUndo
Returns true if this UndoManager can currently perform an undo. Returns false otherwise.
Redo
Performs a redo on the DiagramSurface known to this UndoManager.
Reset
Resets this UndoManager by deleting its undo history.
TakeSnapshot
Saves a DiagramState 'snapshot' of the DiagramSurface known to this UndoManager. This method should be called AFTER an action has modified the DiagramSurface.
Undo
Performs an undo on the DiagramSurface known to this UndoManager.

See Also