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


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
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

Reference

SheetViewCollection Class
SheetViewCollection Members

 

 


Copyright © GrapeCity, inc. All rights reserved.