Spread for ASP.NET 11 Product Documentation
FpSpread Constructor(Int32)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FpSpread Class > FpSpread Constructor : FpSpread Constructor(Int32)
Number of sheets
Creates a new spreadsheet component with the specified number of sheets.
Syntax
'Declaration
 
Public Function New( _
   ByVal sheetCount As Integer _
)
'Usage
 
Dim sheetCount As Integer
 
Dim instance As New FpSpread(sheetCount)
public FpSpread( 
   int sheetCount
)

Parameters

sheetCount
Number of sheets
Example
This example dynamically creates an instance of the spreadsheet component.
protected System.Web.UI.HtmlControls.HtmlForm Form1;
protected FarPoint.Web.Spread.FpSpread fpspread1;

fpspread1 = new FarPoint.Web.Spread.FpSpread(2);
fpspread1.ID = "fpspread1";
fpspread1.Style.Add("Position", "Absolute");
fpspread1.Style.Add("Top", "120px");
fpspread1.Style.Add("Left", "100px");
fpspread1.Style.Add("Height", "150px");
fpspread1.Style.Add("Width", "380px");
Form1.Controls.Add(fpspread1);
Protected Form1 As System.Web.UI.HtmlControls.HtmlForm
Protected WithEvents fpspread1 As FarPoint.Web.Spread.FpSpread

fpspread1 = New FarPoint.Web.Spread.FpSpread(2)
fpspread1.ID = "fpspread1"
fpspread1.Style("Position") = "Absolute"
fpspread1.Style("Top") = "120px"
fpspread1.Style("Left") = "100px"
fpspread1.Style("Height") = "150px"
fpspread1.Style("Width") = "380px"
Form1.Controls.Add(fpspread1)
See Also

Reference

FpSpread Class
FpSpread Members
Overload List