IList.IndexOf Method

DependencyObjectCollection<T>.IList.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.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

int IList.IndexOf(
	Object value


Type: System.Object
The object to locate in the collection.

Return Value

Type: System.Int32
The index of the first occurrence of item within the collection, or -1 if item is not in the collection.



This member is an explicit interface member implementation. It can be used only when the DependencyObjectCollection<T> instance is cast to an IList interface.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

© 2016 Microsoft