Count Property
Collapse the table of content
Expand the table of content

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)

[BrowsableAttribute(false)]
public int Count { get; }

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:
© 2016 Microsoft