[]
Executes the specified command.
public virtual CommandResult Execute(Command command, IWorkbook workbook = null, bool notifyUI = true)
Public Overridable Function Execute(command As Command, Optional workbook As IWorkbook = Nothing, Optional notifyUI As Boolean = True) As CommandResult
Type | Name | Description |
---|---|---|
Command | command | The command to be executed. |
IWorkbook | workbook | The workbook that the command executes. |
bool | notifyUI |
|
Type | Description |
---|---|
CommandResult | An GrapeCity.Spreadsheet.Commands.CommandResult struct which contains information about the execution of action. |
If the command is no longer belong to the undo or redo list, it'll be disposed.