ListBox::SelectedObjectCollection::IndexOf Method (Object^)
.NET Framework (current version)
Returns the index within the collection of the specified item.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- selectedObject
-
Type:
System::Object^
An object representing the item to locate in the collection.
Implements
IList::IndexOf(Object^)Once you know that an item is located within the collection (using the Contains method), you can use the IndexOf method to determine where a specific item within the ListBox::ObjectCollection for the ListBox is stored within the ListBox::SelectedObjectCollection.
.NET Framework
Available since 1.1
Available since 1.1
Show: