Spread Windows Forms 6.0 Product Documentation
AddRange(ICollection) Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetViewCollection Class > AddRange Method : AddRange(ICollection) Method


c
Collection of sheets to add to the collection

Glossary Item Box

Adds a range of sheets to the collection.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub AddRange( _
   ByVal c As ICollection _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetViewCollection
Dim c As ICollection
 
instance.AddRange(c)
C# 
public void AddRange( 
   ICollection c
)

Parameters

c
Collection of sheets to add to the collection

Example

This example adds a range of sheets to the collection.
C#Copy Code
System.Collections.ArrayList coll = new System.Collections.ArrayList(3); 
FarPoint.Win.Spread.SheetView Sheet1 = new FarPoint.Win.Spread.SheetView();
FarPoint.Win.Spread.SheetView Sheet2 = new FarPoint.Win.Spread.SheetView();
FarPoint.Win.Spread.SheetView Sheet3 = new FarPoint.Win.Spread.SheetView();
coll.AddRange(new object[] {Sheet1, Sheet2, Sheet3});
fpSpread1.Sheets.AddRange(coll);
Visual BasicCopy Code
Dim coll As New System.Collections.ArrayList(3)
Dim Sheet1 As New FarPoint.Win.Spread.SheetView()
Dim Sheet2 As New FarPoint.Win.Spread.SheetView()
Dim Sheet3 As New FarPoint.Win.Spread.SheetView()
coll.AddRange(New Object() {Sheet1, Sheet2, Sheet3})
FpSpread1.Sheets.AddRange(coll)

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.