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


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > DefaultStyleCollection Class : Count Property
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

Reference

DefaultStyleCollection Class
DefaultStyleCollection Members