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
- item
Type: Microsoft.SPOT.Presentation.Controls. . :: . .ListBoxItem
The item you want to search for in the current collection.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.