Spread Windows Forms 12.0 Product Documentation
Count Property (SheetViewCollection)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetViewCollection Class : Count Property
Gets or sets the number of sheets (SheetView objects) in the collection.
Syntax
'Declaration
 
Public Shadows Property Count As Integer
'Usage
 
Dim instance As SheetViewCollection
Dim value As Integer
 
instance.Count = value
 
value = instance.Count
public new int Count {get; set;}

Property Value

Integer number of sheets in the collection
Remarks

The maximum number of sheets that a Spread component may contain is 2,147,483,647.

Example
This example specifies the number of sheets in the collection.
fpSpread1.Sheets.Count = 3;
fpSpread1.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.Always;
FpSpread1.Sheets.Count = 3
FpSpread1.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.Always
See Also

Reference

SheetViewCollection Class
SheetViewCollection Members