편집

다음을 통해 공유


ScrollingObjectCollection.MoveToIndex(Int32, Boolean, Action) Method

Definition

Moves scroller container to a position where the selected cell is in the first tier of the viewable area.

public void MoveToIndex (int cellIndex, bool animateToPosition = true, Action callback = default);
member this.MoveToIndex : int * bool * Action -> unit
Public Sub MoveToIndex (cellIndex As Integer, Optional animateToPosition As Boolean = true, Optional callback As Action = Nothing)

Parameters

cellIndex
Int32

Index of the cell to move to

animateToPosition
Boolean

if true, scroller will animate to new position

callback
Action

An optional action to pass in to get notified that the ScrollingObjectCollection is finished moving

Applies to