Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SheetViewCollection Class / Count Property
Example


In This Topic
    Count Property (SheetViewCollection)
    In This Topic
    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