Spread Windows Forms 7.0 Product Documentation
Add Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetViewCollection Class : Add Method


obj
Sheet (SheetView object) to add to the collection

Glossary Item Box

Adds a sheet to the collection.

Syntax

Visual Basic (Declaration) 
Public Function Add( _
   ByVal obj As Object _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As SheetViewCollection
Dim obj As Object
Dim value As Integer
 
value = instance.Add(obj)
C# 
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.
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 BasicCopy 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

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.