편집

다음을 통해 공유


CollectionView.MoveCurrentToPosition(Int32) Method

Definition

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

public:
 virtual bool MoveCurrentToPosition(int position);
public virtual bool MoveCurrentToPosition (int position);
abstract member MoveCurrentToPosition : int -> bool
override this.MoveCurrentToPosition : int -> bool
Public Overridable Function MoveCurrentToPosition (position As Integer) As Boolean

Parameters

position
Int32

The index to set the CurrentItem to.

Returns

true if the resulting CurrentItem is an item within the view; otherwise, false.

Implements

Remarks

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 allows you to retrieve the object that exists at that particular location in the collection. For more information, see "Binding to Collections" in Data Binding Overview.

Applies to