Udostępnij za pośrednictwem


TextView.BringPointIntoView Method

Definition

Overloads

BringPointIntoView(Int32)

Move the point, specified by the offset, into the view if it is needed.

BringPointIntoView(Int32, Boolean)

Move the insertion position of the given offset into visible area of the View.

BringPointIntoView(Int32)

Move the point, specified by the offset, into the view if it is needed.

[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

Parameters

offset
Int32

Returns

Attributes

Remarks

Move the point, specified by the offset, into the view if it is needed. This has to be called after layout. Returns true if anything changed.

Java documentation for android.widget.TextView.bringPointIntoView(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

BringPointIntoView(Int32, Boolean)

Move the insertion position of the given offset into visible area of the View.

[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

Parameters

offset
Int32

an offset of the character.

requestRectWithoutFocus
Boolean

True for calling View#requestRectangleOnScreen(Rect) in the unfocused state. False for calling it only the View has the focus.

Returns

true if anything changed, otherwise false.

Attributes

Remarks

Move the insertion position of the given offset into visible area of the View.

If the View is focused or requestRectWithoutFocus is set to true, this API may call View#requestRectangleOnScreen(Rect) to bring the point to the visible area if necessary.

Java documentation for android.widget.TextView.bringPointIntoView(int, boolean).

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