Carries out an action, usually changing the diagram in some way.
Namespace: MindFusion.Diagramming.Wpf.Commands
Assembly: MindFusion.Diagramming.Wpf
SyntaxC#
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.
RemarksImplement 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.
See Also