Spread Windows Forms 17
GrapeCity.Spreadsheet.WinForms.Ribbon Assembly / GrapeCity.Spreadsheet.WinForms.Ribbon Namespace / RibbonBar Class / ExecuteCommand Method / ExecuteCommand(BuiltInCommands,Object) Method
A BuiltInCommands value indicates the command.
An object instance indicates the command parameter.


In This Topic
    ExecuteCommand(BuiltInCommands,Object) Method
    In This Topic
    Executes a command with the specified parameter.
    Syntax
    'Declaration
     
    
    Public Overloads Function ExecuteCommand( _
       ByVal command As BuiltInCommands, _
       ByVal parameter As Object _
    ) As Boolean
    'Usage
     
    
    Dim instance As RibbonBar
    Dim command As BuiltInCommands
    Dim parameter As Object
    Dim value As Boolean
     
    value = instance.ExecuteCommand(command, parameter)
    public bool ExecuteCommand( 
       BuiltInCommands command,
       object parameter
    )

    Parameters

    command
    A BuiltInCommands value indicates the command.
    parameter
    An object instance indicates the command parameter.

    Return Value

    true if the command is executed successful; otherwise, false.
    See Also