IndexOf Method

PresentationFrameworkCollection<T>.IndexOf Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Determines the index of a specific item in the PresentationFrameworkCollection<T>.

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

public int IndexOf(
	T value
)

Parameters

value
Type: T
The object to locate in the PresentationFrameworkCollection<T>.

Return Value

Type: System.Int32
The index of value if found in the list; otherwise, an exception.

Implements

IList<T>.IndexOf(T)

ExceptionCondition
ArgumentException

The object was not found in the list.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft