Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Commands Namespace / CommandManager Class / Execute Method
The command to be executed.
The workbook that the command executes.
true if change(s) is notified to control; otherwise, false.


In This Topic
    Execute Method (CommandManager)
    In This Topic
    Executes the specified command.
    Syntax
    'Declaration
     
    
    Public Overridable Function Execute( _
       ByVal command As Command, _
       Optional ByVal workbook As IWorkbook, _
       Optional ByVal notifyUI As Boolean _
    ) As CommandResult
    'Usage
     
    
    Dim instance As CommandManager
    Dim command As Command
    Dim workbook As IWorkbook
    Dim notifyUI As Boolean
    Dim value As CommandResult
     
    value = instance.Execute(command, workbook, notifyUI)
    public virtual CommandResult Execute( 
       Command command,
       IWorkbook workbook,
       bool notifyUI
    )

    Parameters

    command
    The command to be executed.
    workbook
    The workbook that the command executes.
    notifyUI
    true if change(s) is notified to control; otherwise, false.

    Return Value

    An 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.
    See Also