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.
Name | Description | |
---|---|---|
Initializes a new instance of the Command class. |
Name | Description | |
---|---|---|
Gets or sets the text associated with the action. |
Name | Description | |
---|---|---|
Gets the command's context. |
||
Gets a collection of all command objects contained within the composite one. |
Name | Description | |
---|---|---|
Adds an action to a composite command. |
Name | Description | |
---|---|---|
Merges adjacent commands in the history queue if they are related. |
||
Carries out an action, usually changing the diagram in some way. |
||
Determines whether a command has been initiated by this command and should be treated as a derivative. |
||
Repeats an action that has been undone. |
||
Undoes an action, restoring the diagram to the state it was in before carrying out the action. |