UITableView.ScrollToRow(NSIndexPath, UITableViewScrollPosition, Boolean) UITableView.ScrollToRow(NSIndexPath, UITableViewScrollPosition, Boolean) Method


Automatically scrolls the table view until the specified row appears in the required position.

public virtual void ScrollToRow (Foundation.NSIndexPath indexPath, UIKit.UITableViewScrollPosition atScrollPosition, bool animated);
abstract member ScrollToRow : Foundation.NSIndexPath * UIKit.UITableViewScrollPosition * bool -> unit
override this.ScrollToRow : Foundation.NSIndexPath * UIKit.UITableViewScrollPosition * bool -> unit


NSIndexPath NSIndexPath

Identifies which row should appear atScrollPosition.   You can pass NotFound to scroll to a section with zero rows.

UITableViewScrollPosition UITableViewScrollPosition

Position that the target row should appear (e. top, middle, bottom) once the scrolling is complete.

Boolean Boolean

true to animate the scroll, false if the table view should just jump immediately to the new position.


Calling this method does not trigger Scrolled(UIScrollView), which would normally occur after a programmatically-invoked UI operation.

Applies to