IUndo |
The IUndoRedoManagerT type exposes the following members.
Name | Description | |
---|---|---|
![]() | CanRedo | Checks if there are any stored state available on the redo stack. |
![]() | CanUndo | Checks if there are any stored state available on the undo stack. |
![]() | InUndoRedo | Gets a value indicating if the history is in the process of undoing or redoing. |
![]() | MementoSizeThreshold | The size threshold that a memento can be added to the stack. A non-positive value means no size limit. The size is just an arbitrary value. |
![]() | RedoCount | Gets number of redo actions available |
![]() | StackPermissionType | The flag to indicate how a memento is added to the stack. |
![]() | Subject | The subject that this undo redo history is about. |
![]() | SupportRedo | Gets or sets whether the history supports redo. |
![]() | UndoCount | Gets number of undo actions available |
![]() | Validator | The delegate to ask for confirmation when a memento is added. A null validator means that the memento is always approved. |
Name | Description | |
---|---|---|
![]() | Clear | Clear the entire undo and redo stacks. |
![]() | CompoundDo | Pushes mementos into the undo stack, any time the state of Subject changes. |
![]() | Do(IListIMementoT) | Pushes mementos into the undo stack, any time the state of Subject changes. |
![]() | Do(IMementoT) | Pushes an memento into the undo stack, any time the state of Subject changes. |
![]() | PeekRedo | Gets, without removing, the top memento on the redo stack. |
![]() | PeekUndo | Gets, without removing, the top memento on the undo stack. |
![]() | Redo | 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. |
![]() | Undo | 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. |
Name | Description | |
---|---|---|
![]() | StackChanged | Raised whenever there is a change to the undo-redo stack. |