iOSMobileTable.ScrollToRow

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

iOSMobileTable.ScrollToRow(section As Integer = 0, row As Integer, animated As Boolean = True, position As ScrollPositions = ScrollPositions.None)

Supported on Mobile.

Scrolls the table so that the requested row is visible. The row's position when scrolling is finished is controlled by the position parameter.

Parameters

Parameter Description
section The section containing the row to scroll to.
row The row to scroll to.
animated The scrolling is animated when True.
position Where to position the row in the table after scrolling to it. Refer to the ScrollPositions enum for possible values.

Sample Code

Scroll to section 2, row 10:

myTable.ScrollToRow(2, 10)
myTable.ScrollToRow(2, 10, True, iOSTable.ScrollPositions.Middle)