ListBox::IntegerCollection::Count Property

 

Gets the number of selected items in the ListBox.

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

public:
[BrowsableAttribute(false)]
property int Count {
	virtual int get() sealed;
}

Property Value

Type: System::Int32

The number of selected items in the ListBox.

Use the Count property to determine the number of selected items in the ListBox::IntegerCollection. You can then use this value when you are looping through the items and you need to provide a number of iterations to perform the loop.

.NET Framework
Available since 2.0
Return to top
Show: