MindFusion.Wpf Pack Programmer's Guide
Command Members
Constructors Properties Methods
 


Represent an action that can be carried out on a diagram, and later undone or redone.

The following tables list the members exposed by the Command type.

 Protected Constructors

  Name Description

Command

Initializes a new instance of the Command class.

 Public Properties

  Name Description

Title

Gets or sets the text associated with the action.

 Protected Properties

  Name Description

Context

Gets the command's context.

SubCommands

Gets a collection of all command objects contained within the composite one.

 Public Methods

  Name Description

AddSubCmd

Adds an action to a composite command.

 Protected Methods

  Name Description

Adopt

Merges adjacent commands in the history queue if they are related.

Execute

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

IsContainerOf

Determines whether a command has been initiated by this command and should be treated as a derivative.

Redo

Repeats an action that has been undone.

Undo

Undoes an action, restoring the diagram to the state it was in before carrying out the action.

 See Also

Command Class
MindFusion.Diagramming.Wpf.Commands Namespace