Share via


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)

Syntax

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

Parameters

Return Value

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

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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