Export (0) Print
Expand All

PagedCollectionView.MoveCurrentToPosition Method

Silverlight

Sets the item at the specified index to be the CurrentItem in the view.

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

public bool MoveCurrentToPosition(
	int position
)

Parameters

position
Type: System.Int32
The index to set the CurrentItem to.

Return Value

Type: System.Boolean
true if the resulting CurrentItem is an item in the view; otherwise, false.

Implements

ICollectionView.MoveCurrentToPosition(Int32)

ExceptionCondition
ArgumentOutOfRangeException

position is less than -1 or greater than the Count of items in the view.

Collection views support the concept of a current record pointer. As you navigate through the objects in a collection view, you are moving a record pointer that enables you to retrieve the object that exists at that particular location in the collection.

Silverlight

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.

Community Additions

ADD
Show:
© 2014 Microsoft