AbstractCursor.MoveToPosition(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Move the cursor to an absolute position.
[Android.Runtime.Register("moveToPosition", "(I)Z", "")]
public bool MoveToPosition(int position);
[<Android.Runtime.Register("moveToPosition", "(I)Z", "")>]
abstract member MoveToPosition : int -> bool
override this.MoveToPosition : int -> bool
Parameters
- position
- Int32
the zero-based position to move to.
Returns
whether the requested move fully succeeded.
Implements
- Attributes
Remarks
Moves the cursor to an absolute position. For a nonnegative row count, a position below zero moves before the first row, and a position at or beyond the row count moves after the last row. Both return false.
A move to an existing row returns true unless the subclass rejects the move.
Android reference for android.database.AbstractCursor.moveToPosition.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.