CADability dotNET

The UndoRedoSystem type exposes the following members.

Methods

  NameDescription
Public methodAddUndoStep
Adds an undo step to the undo stack.
Public methodCanRedo
Returns true, if there is a step on the redo stack
Public methodCanUndo
Returns true, if there is a step on the undo stack
Public methodClearContext
After several changes "using contextFrame" you can reset the context so that the following changes with the same context generate a new undo step.
Public methodCloseUndoFrame
Closes the previously opened undo frame. See OpenUndoFrame()()()().
Public methodContextFrame
All calls to AddUndoStep(ReversibleChange) that appeare inside the same context are considered to belong to the same action and override the previous call from the same context. So only the last call will be saved in the undo stack. Use ContextFrame with the C# "using" schema or call IDisposable.Dispose() to close the frame.
Public methodIgnoreLastStep
The top undostep on the undo stack will be ignored.
Public methodOpenUndoFrame
Opens an undo frame: all subsequent calls to AddUndoStep(ReversibleChange) are considered as a single undo step until CloseUndoFrame(Object) is beeing called. You can use the property UndoFrame instead. UndoFrames may be nested.
Public methodRedoLastStep
Executes the redo of the last step. Ususlly called by the project when handling the "MenuId.Edit.Redo" command.
Public methodUndoLastStep
Executes the undo of the last step. Ususlly called by the project when handling the "MenuId.Edit.Undo" command.

See Also