Adds a sheet to the collection.
Syntax
Visual Basic (Declaration) | |
---|
Public Function Add( _
ByVal obj As Object _
) As Integer |
Parameters
- obj
- Sheet (SheetView object) to add to the collection
Return Value
Integer index of the sheet
Example
This example adds a sheet to the collection.
C# | Copy Code |
---|
FarPoint.Win.Spread.SheetView s = new FarPoint.Win.Spread.SheetView();
s.ColumnCount = 4;
s.RowCount = 4;
fpSpread1.Sheets.Add(s);
fpSpread1.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.AsNeeded; |
Visual Basic | Copy Code |
---|
Dim s As New FarPoint.Win.Spread.SheetView()
s.ColumnCount = 4
s.RowCount = 4
FpSpread1.Sheets.Add(s)
FpSpread1.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.AsNeeded |
Requirements
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8
See Also