Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TypeConverter.StandardValuesCollection.Count Property


Gets the number of objects in the collection.

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

public int Count { 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
© 2017 Microsoft