Creates a new button cell.
Syntax
Visual Basic (Declaration) | |
---|
Public Function New() |
C# | |
---|
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.
C# | Copy Code |
---|
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); |
Visual Basic | Copy Code |
---|
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) |
Requirements
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
See Also