ComboBox::ObjectCollection::Count Property

 

Gets the number of items in the collection.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

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

Property Value

Type: System::Int32

The number of items in the collection.

This property enables you to determine the number of items in the ComboBox. You can use this value when looping through the values of the collection.

.NET Framework
Available since 1.1
Return to top
Show: