Spread ASP.NET 6.0 Product Documentation
FpSpread Constructor(Int32)
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FpSpread Class > FpSpread Constructor : FpSpread Constructor(Int32)


sheetCount
Number of sheets

Glossary Item Box

Creates a new spreadsheet component with the specified number of sheets.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal sheetCount As Integer _
)
Visual Basic (Usage)Copy Code
Dim sheetCount As Integer
 
Dim instance As New FpSpread(sheetCount)
C# 
public FpSpread( 
   int sheetCount
)

Parameters

sheetCount
Number of sheets

Example

This example dynamically creates an instance of the spreadsheet component.
C#Copy Code
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("Position") = "Absolute";
fpspread1.Style("Top") = "120px";
fpspread1.Style("Left") = "100px";
fpspread1.Style("Height") = "150px";
fpspread1.Style("Width") = "380px";
Form1.Controls.Add(fpspread1);
Visual BasicCopy Code
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)

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.