PagedCollectionView.IndexOf Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Returns the zero-based index at which the specified item is located.

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


Public Function IndexOf ( _
    item As Object _
) As Integer
public int IndexOf(
    Object item


Return Value

Type: System.Int32
The index at which the specified item is located, or –1 if the item is unknown.

Version Information


Supported in: 5, 4, 3


For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.