Dil

AbstractCursor.Position Property

Definition

Returns the current position of the cursor in the row set.

public int Position { [Android.Runtime.Register("getPosition", "()I", "")] get; }
[<get: Android.Runtime.Register("getPosition", "()I", "")>]
member this.Position : int

Property Value

the current cursor position. Value is -1 or greater

Implements

Attributes

Remarks

Returns the current position of the cursor in the row set. The value is zero-based. When the row set is first returned the cursor will be at position -1, which is before the first row. After the last row is returned another call to next() will leave the cursor past the last entry, at a position of count().

Android reference for android.database.AbstractCursor.getPosition.

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