ListView.JumpToIndex
JumpToIndex(int)
Jumps the ListView to the item at the given index.
Remarks
The final location of the specified item after the jump will be at to the edge of the view
in the direction which the ListView had to scroll to get to the item.
E.g. If the ListView had to scroll down to get to the item in a vertically scrollable list,
the item will be at the bottom of the view.
Declaration
public void JumpToIndex(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index into the data source, set via SetDataSource<T>(IList<T>), of the object to bind into view and jump to |
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | if |
System.InvalidOperationException | if |
See Also
JumpToIndexPage(System.Int32)