Spread ASP.NET 16
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / ButtonCellType Class / ButtonCellType Constructor / ButtonCellType Constructor()
Example


In This Topic
    ButtonCellType Constructor()
    In This Topic
    Creates a new button cell.
    Syntax
    'Declaration
     
    Public Function New()
    'Usage
     
    Dim instance As New ButtonCellType()
    public ButtonCellType()
    Example
    This example shows the use of the constructor by creating a button cell type and a style and applying them to a sheet of a defined size.
    FarPoint.Web.Spread.ButtonCellType btn=new FarPoint.Web.Spread.ButtonCellType();
    FarPoint.Web.Spread.StyleInfo style=new FarPoint.Web.Spread.StyleInfo();
    FpSpread1.Sheets[0].ColumnCount=7;
    FpSpread1.Sheets[0].RowCount=50;
    btn.ButtonType=FarPoint.Web.Spread.ButtonType.PushButton;
    style.CellType=btn;
    FpSpread1.Sheets[0].SetStyleInfo(-1,0,style);
    Dim btn As New FarPoint.Web.Spread.ButtonCellType()
    Dim style As New FarPoint.Web.Spread.StyleInfo()
    FpSpread1.Sheets(0).ColumnCount=7
    FpSpread1.Sheets(0).RowCount=50
    btn.ButtonType=FarPoint.Web.Spread.ButtonType.PushButton
    style.CellType=btn
    FpSpread1.Sheets(0).SetStyleInfo(-1,0,style)
    See Also