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 .NET Micro Framework version 2.0, 2.5

See Also

Reference

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