TypeConverter.StandardValuesCollection.Count Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Show: