[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Commands.CommandManager.Execute

Execute Method

Execute(Command, IWorkbook, bool)

Executes the specified command.

Declaration
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
Parameters
Type Name Description
Command command

The command to be executed.

IWorkbook workbook

The workbook that the command executes.

bool notifyUI

true if change(s) is notified to control; otherwise, false.

Returns
Type Description
CommandResult

An GrapeCity.Spreadsheet.Commands.CommandResult struct which contains information about the execution of action.

Remarks

If the command is no longer belong to the undo or redo list, it'll be disposed.