Spread Windows Forms 6.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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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