ICursor.MoveToPosition(Int32) Method

Definition

Move the cursor to an absolute position.

[Android.Runtime.Register("moveToPosition", "(I)Z", "GetMoveToPosition_IHandler:Android.Database.ICursorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool MoveToPosition (int position);
[<Android.Runtime.Register("moveToPosition", "(I)Z", "GetMoveToPosition_IHandler:Android.Database.ICursorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member MoveToPosition : int -> bool

Parameters

position
Int32

the zero-based position to move to.

Returns

whether the requested move fully succeeded.

Attributes

Remarks

Move the cursor to an absolute position. The valid range of values is -1 &lt;= position &lt;= count.

This method will return true if the request destination was reachable, otherwise, it returns false.

Java documentation for android.database.Cursor.moveToPosition(int).

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.

Applies to