Udostępnij za pośrednictwem


ICollectionView.MoveCurrentToPosition(Int32) Method

Definition

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

public:
 bool MoveCurrentToPosition(int index);
bool MoveCurrentToPosition(int const& index);
public bool MoveCurrentToPosition(int index);
function moveCurrentToPosition(index)
Public Function MoveCurrentToPosition (index As Integer) As Boolean

Parameters

index
Int32

int

The index of the item to move to.

Returns

Boolean

bool

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

Applies to