Spread ASP.NET 17
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / ButtonCellType Class / CommandName Property
Example


In This Topic
    CommandName Property (ButtonCellType)
    In This Topic
    Gets or sets the command name for the button.
    Syntax
    '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
    Example
    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.)
    See Also