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


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

    Parameters

    commandName
    A string 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