语言

CursorWrapper.MoveToPosition(Int32) 方法

定义

将光标移动到绝对位置。

[Android.Runtime.Register("moveToPosition", "(I)Z", "GetMoveToPosition_IHandler")]
public virtual bool MoveToPosition(int position);
[<Android.Runtime.Register("moveToPosition", "(I)Z", "GetMoveToPosition_IHandler")>]
abstract member MoveToPosition : int -> bool
override this.MoveToPosition : int -> bool

参数

position
Int32

要移动到的从零开始的位置。

返回

请求的移动是否完全成功。

实现

特性

注解

将光标移动到绝对位置。 值的有效范围 -1 <= position <= count。

如果请求目标可访问,此方法将返回 true,否则返回 false。

Android 参考。android.database.CursorWrapper.moveToPosition

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于