语言

TextView.BringPointIntoView 方法

定义

重载

名称 说明
BringPointIntoView(Int32)

如果需要,请将偏移量指定的点移动到视图中。

BringPointIntoView(Int32, Boolean)

将给定偏移量的插入位置移动到视图的可见区域。

BringPointIntoView(Int32)

如果需要,请将偏移量指定的点移动到视图中。

[Android.Runtime.Register("bringPointIntoView", "(I)Z", "GetBringPointIntoView_IHandler")]
public virtual bool BringPointIntoView(int offset);
[<Android.Runtime.Register("bringPointIntoView", "(I)Z", "GetBringPointIntoView_IHandler")>]
abstract member BringPointIntoView : int -> bool
override this.BringPointIntoView : int -> bool

参数

offset
Int32

int

返回

引入视图操作的结果。

特性

注解

如果需要,请将偏移量指定的点移动到视图中。 这必须在布局后调用。 如果发生任何更改,则返回 true。

Java文档android.widget.TextView.bringPointIntoView(int)。

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

适用于

BringPointIntoView(Int32, Boolean)

将给定偏移量的插入位置移动到视图的可见区域。

[Android.Runtime.Register("bringPointIntoView", "(IZ)Z", "GetBringPointIntoView_IZHandler", ApiSince=34)]
public virtual bool BringPointIntoView(int offset, bool requestRectWithoutFocus);
[<Android.Runtime.Register("bringPointIntoView", "(IZ)Z", "GetBringPointIntoView_IZHandler", ApiSince=34)>]
abstract member BringPointIntoView : int * bool -> bool
override this.BringPointIntoView : int * bool -> bool

参数

offset
Int32

字符的偏移量。

requestRectWithoutFocus
Boolean

对于处于非重点状态的调用 View#requestRectangleOnScreen(Rect) ,为 True。 如果仅调用视图的焦点,则为 False。

返回

如果发生任何更改,则为 true,否则为 false。

特性

注解

将给定偏移量的插入位置移动到视图的可见区域。

如果视图聚焦或 requestRectWithoutFocus 设置为 true,则此 API 可以根据需要调用 View#requestRectangleOnScreen(Rect) 以将点引入可见区域。

Java文档android.widget.TextView.bringPointIntoView(int, boolean)。

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

适用于