TypeConverter::StandardValuesCollection::Count Property

 

Gets the number of objects in the collection.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public:
property int Count {
	int get();
}

Property Value

Type: System::Int32

The number of objects in the collection.

The Count property can be used to set the limits of a loop that iterates through a collection of objects. Since collection is zero-based, be sure to use Count - 1 as the upper bound of the loop.

.NET Framework
Available since 1.1
Return to top
Show: