CommandName Property (ButtonCellType)
Gets or sets the command name for the button.
'Declaration
Public Property CommandName As String
'Usage
Dim instance As ButtonCellType
Dim value As String
instance.CommandName = value
value = instance.CommandName
public string CommandName {get; set;}
Property Value
String containing the name of the command
This example shows the use of this method by creating a spreadsheet, setting the first two columns of cells to be button cells and constructing the buttons with a CommandNames of "MyRed" and "MyBlue". (In the ButtonCommand event, the CommandNames are queried and the background color of the spreadsheet is changed depending on the CommandName.)