DependencyObjectCollection<T>.IndexOf Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the index of the specified object within the collection, or -1 if the object is not in the collection.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- item
- Type: T
The object to locate in the collection.
Return Value
Type: System.Int32The index of the first occurrence of item within the collection, or -1 if item is not in the collection.
Implements
IList<T>.IndexOf(T)| Exception | Condition |
|---|---|
| ArgumentException | item is not a DependencyObject. |
Show: