FreezableCollection<T>.IndexOf Method (T)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Searches for the specified object and returns the zero-based index of the first occurrence within the entire FreezableCollection<T>.

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

public int IndexOf(
	T value


Type: T

The object to locate in the FreezableCollection<T>.

Return Value

Type: System.Int32

The zero-based index of the first occurrence of value within the entire FreezableCollection<T>, if found; otherwise, -1.

.NET Framework
Available since 3.0
Return to top