Spread ASP.NET 16
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / ButtonCellType Class / ButtonCellType Constructor / ButtonCellType Constructor(String)
String of command to perform when the user clicks the button
Example


In This Topic
    ButtonCellType Constructor(String)
    In This Topic
    Creates a new button cell with the specified command.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal cmd As String _
    )
    'Usage
     
    Dim cmd As String
     
    Dim instance As New ButtonCellType(cmd)
    public ButtonCellType( 
       string cmd
    )

    Parameters

    cmd
    String of command to perform when the user clicks the button
    Example
    This example shows the use of this constructor 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