Carries out an action, usually changing the diagram in some way.
Namespace: MindFusion.Diagramming.Commands
Assembly: MindFusion.Diagramming
C# Copy Code |
---|
protected abstract void Execute ( |
Visual Basic Copy Code |
---|
Protected MustOverride Sub Execute( _ |
Specifies whether undo/redo is enabled. If undo is disabled, the command won't be saved in undo history and will never be called to undo or redo itself. In such case you might choose to skip some housekeeping operations such as saving state variables for later undo/redo.
Implement your action's logic here. You must not execute commands by calling this method - instead pass them to diagram's ExecuteCommand. ExecuteCommand calls Execute and if UndoEnabled is set to true, adds the command to the undo manager's history.