[]
Searches for the specified object among the elements of the view and returns the zero-based ordinal position of its first occurrence.
public int IndexOf(T item)
| Type | Name | Description |
|---|---|---|
| T | item | The object to locate in the view. |
| Type | Description |
|---|---|
| int | The zero-based ordinal position of the first occurrence of item in the view, if found; otherwise, -1. |