Spread Windows Forms 12.0 Product Documentation
Add Method (SheetViewCollection)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetViewCollection Class : Add Method
Sheet (SheetView object) to add to the collection
Adds a sheet to the collection.
Syntax
'Declaration
 
Public Function Add( _
   ByVal obj As Object _
) As Integer
'Usage
 
Dim instance As SheetViewCollection
Dim obj As Object
Dim value As Integer
 
value = instance.Add(obj)
public int Add( 
   object obj
)

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.
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;
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
See Also

Reference

SheetViewCollection Class
SheetViewCollection Members