Поделиться через


PagedCollectionView.GetItemAt Method

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

Gets the item at the specified zero-based index in this PagedCollectionView, after the source collection is filtered, sorted, and paged.

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

Syntax

'Declaration
Public Function GetItemAt ( _
    index As Integer _
) As Object
public Object GetItemAt(
    int index
)

Parameters

  • index
    Type: System.Int32
    The zero-based index of the item to retrieve.

Return Value

Type: System.Object
The item at the specified zero-based index.

Exceptions

Exception Condition
ArgumentOutOfRangeException

index is less than 0, or greater than or equal to the Count of items in the view.

Remarks

This method evaluates the index with any Filter, SortDescriptions, or GroupDescriptions property values that are set on the view.

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.