Share via


ListBoxItemCollection.IndexOf Method

Retrieves the index number of a specified item (element) if that item is found in the current collection.

Namespace: Microsoft.SPOT.Presentation.Controls
Assembly: Microsoft.SPOT.TinyCore (in microsoft.spot.tinycore.dll)

Syntax

public int IndexOf (
         ListBoxItemitem
)

Parameters

  • item
    The item you want to search for in the current collection.

Return Value

The index number of the specified item if it is found in the current collection, or -1 if it is not found there.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

ListBoxItemCollection Class
ListBoxItemCollection Members
Microsoft.SPOT.Presentation.Controls Namespace