Class CommandCollector
Executes IUndoCommands and collects them into a CompositeCommand allowing a combined undo later on.
public class CommandCollector : ICommandExecutor
- Inheritance
-
CommandCollector
- Implements
- Extension Methods
Properties
Path
The path of the file the data structure being modified was loaded from. null
if none.
public string? Path { get; set; }
Property Value
Methods
BuildComposite()
Creates a new CompositeCommand containing all IUndoCommands collected so far.
public IUndoCommand BuildComposite()
Returns
Execute(IUndoCommand)
Store an IUndoCommand for later execution.
public void Execute(IUndoCommand command)
Parameters
command
IUndoCommandThe command to be stored.