Xceed Grid for WinForms v4.3 Documentation
IndexOf Method (ComboBoxItemList)


Xceed.Grid.v4.3 Assembly > Xceed.Editors Namespace > ComboBoxItemList Class : IndexOf Method
The ComboBoxItem to locate.
Searches for the specified ComboBoxItem in the list and returns the zero-based index of the first occurrence.
Syntax
'Declaration
 
Public Function IndexOf( _
   ByVal item As ComboBoxItem _
) As Integer
'Usage
 
Dim instance As ComboBoxItemList
Dim item As ComboBoxItem
Dim value As Integer
 
value = instance.IndexOf(item)
public int IndexOf( 
   ComboBoxItem item
)

Parameters

item
The ComboBoxItem to locate.

Return Value

The zero-based index of the first occurrence of item within the entire list, if found; otherwise, returns -1.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ComboBoxItemList Class
ComboBoxItemList Members