Share via


IndexOf Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

'Declaration
Public Function IndexOf ( _
    item As ListBoxItem _
) As Integer
public int IndexOf(
    ListBoxItem item
)
public:
int IndexOf(
    ListBoxItem^ item
)
member IndexOf : 
        item:ListBoxItem -> int 
public function IndexOf(
    item : ListBoxItem
) : int

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

ListBoxItemCollection Class

Microsoft.SPOT.Presentation.Controls Namespace