Search
Command.Execute Method
See Also
 






Carries out an action, usually changing the diagram in some way.

Namespace: MindFusion.Diagramming.Commands
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

protected abstract void Execute (
    bool undoEnabled
)

Visual Basic  Copy Code

Protected MustOverride Sub Execute( _
    undoEnabled As Boolean _
)

 Parameters

undoEnabled

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.

 Remarks

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.

 See Also