Class CompositeCommand
Command that groups multiple commands into a single undoable operation.
public class CompositeCommand : IGraphCommand
- Inheritance
-
CompositeCommand
- Implements
- Inherited Members
Constructors
CompositeCommand(string, params IGraphCommand[])
Creates a composite command with a custom description.
public CompositeCommand(string description, params IGraphCommand[] commands)
Parameters
descriptionstringcommandsIGraphCommand[]
CompositeCommand(string, IEnumerable<IGraphCommand>)
Creates a composite command with a custom description.
public CompositeCommand(string description, IEnumerable<IGraphCommand> commands)
Parameters
descriptionstringcommandsIEnumerable<IGraphCommand>
Properties
Description
Gets a human-readable description of the command.
public string Description { get; }
Property Value
Methods
Execute()
Executes the command.
public void Execute()
Undo()
Reverses the command (undo).
public void Undo()