Interface ICollectiveUndoCommand
Interface representing a self-executing command in the undo buffer. This command type is responsible for controlling its own execution and un-execution. This command will be stored and executed at the highest commander level. The commander will call the Do() and Undo() methods as required - they should not be called before adding to the undo buffer.
Namespace: SdlSdl.DesktopEditorEditorApi
Assembly: Sdl.DesktopEditor.EditorApi.dll
Syntax
public interface ICollectiveUndoCommand : IUndoCommand
Methods
Do()
Executes the command. This will be called by the undo buffer's commander as required and should not usually be called externally.
Declaration
void Do()
Redo()
Performs a redo of the command. This will be called by the undo buffer's commander as required and should not usually be called externally.
Declaration
void Redo()
Undo()
Reverses the execution of the command and restores all affected components to their original state. This will be called by the undo buffer's commander as required and should not usually be called externally.
Declaration
void Undo()