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


In This Topic
    Count Property (DefaultStyleCollection)
    In This Topic
    Gets the number of NamedStyle objects in the collection.
    Syntax
    'Declaration
     
    Public ReadOnly Property Count As Integer
    'Usage
     
    Dim instance As DefaultStyleCollection
    Dim value As Integer
     
    value = instance.Count
    public int Count {get;}

    Property Value

    Integer number of default styles in the collection
    Example
    This example illustrates the use of this member by returning the number of NamedStyles in the collection.
    FarPoint.Win.Spread.DefaultStyleCollection dsc = new FarPoint.Win.Spread.DefaultStyleCollection();
    listBox1.Items.Add(dsc.Count.ToString());
    Dim dsc As New FarPoint.Win.Spread.DefaultStyleCollection()
    ListBox1.Items.Add(dsc.Count.ToString())
    See Also