Retrieves the index within the collection of the specified item.
Public Function IndexOf ( _ value As Object _ ) As Integer
Dim instance As ComboBox..::.ObjectCollection Dim value As Object Dim returnValue As Integer returnValue = instance.IndexOf(value)
public int IndexOf( Object value )
public: virtual int IndexOf( Object^ value ) sealed
public final function IndexOf( value : Object ) : int
The value parameter was nullNothingnullptra null reference (Nothing in Visual Basic).
The IndexOf method enables you to determine where an item is located within the collection. To determine if an item is located within the collection before calling this method, use the Contains method.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC