ComponentOne Input for WinForms
C1.Win.C1Input.4.5.2 Assembly / C1.Win.C1Input Namespace / DropDownItemCollection Class / IndexOf Method
The item to locate in the list.

In This Topic
    IndexOf Method (DropDownItemCollection)
    In This Topic
    Returns the zero-based index of the first occurrence of a value in the list.
    Syntax
    'Declaration
     
    Public Function IndexOf( _
       ByVal value As DropDownItem _
    ) As Integer
    public int IndexOf( 
       DropDownItem value
    )

    Parameters

    value
    The item to locate in the list.

    Return Value

    The zero-based index of the first occurrence of value within the entire list, if found; otherwise, -1.
    See Also