[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.ExecuteCommand

ExecuteCommand Method

ExecuteCommand(string, object)

Executes a command with the specified parameter.

Declaration
public bool ExecuteCommand(string commandName, object parameter)
Public Function ExecuteCommand(commandName As String, parameter As Object) As Boolean
Parameters
Type Name Description
string commandName

A string value indicates the command.

object parameter

An object instance indicates the command parameter.

Returns
Type Description
bool

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

ExecuteCommand(BuiltInCommands, object)

Executes a command with the specified parameter.

Declaration
public bool ExecuteCommand(BuiltInCommands command, object parameter)
Public Function ExecuteCommand(command As BuiltInCommands, parameter As Object) As Boolean
Parameters
Type Name Description
BuiltInCommands command

A BuiltInCommands value indicates the command.

object parameter

An object instance indicates the command parameter.

Returns
Type Description
bool

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