Język

CursorAnchorInfo.Builder.SetInsertionMarkerLocation Method

Definition

Sets the location of the text insertion point (zero width cursor) as a rectangle in local coordinates.

[Android.Runtime.Register("setInsertionMarkerLocation", "(FFFFI)Landroid/view/inputmethod/CursorAnchorInfo$Builder;", "")]
public Android.Views.InputMethods.CursorAnchorInfo.Builder? SetInsertionMarkerLocation(float horizontalPosition, float lineTop, float lineBaseline, float lineBottom, Android.Views.InputMethods.CursorAnchorFlags flags);
[<Android.Runtime.Register("setInsertionMarkerLocation", "(FFFFI)Landroid/view/inputmethod/CursorAnchorInfo$Builder;", "")>]
member this.SetInsertionMarkerLocation : single * single * single * single * Android.Views.InputMethods.CursorAnchorFlags -> Android.Views.InputMethods.CursorAnchorInfo.Builder

Parameters

horizontalPosition
Single

horizontal position of the insertion marker, in the local coordinates that will be transformed with the transformation matrix when rendered on the screen. This should be calculated or compatible with Layout.getPrimaryHorizontal(int).

lineTop
Single

vertical position of the insertion marker, in the local coordinates that will be transformed with the transformation matrix when rendered on the screen. This should be calculated or compatible with Layout.getLineTop(int).

lineBaseline
Single

vertical position of the insertion marker, in the local coordinates that will be transformed with the transformation matrix when rendered on the screen. This should be calculated or compatible with Layout.getLineBaseline(int).

lineBottom
Single

vertical position of the insertion marker, in the local coordinates that will be transformed with the transformation matrix when rendered on the screen. This should be calculated or compatible with Layout.getLineBottom(int).

flags
CursorAnchorFlags

flags of the insertion marker. See CursorAnchorInfo.FLAG_HAS_VISIBLE_REGION for example.

Returns

Attributes

Remarks

Sets the location of the text insertion point (zero width cursor) as a rectangle in local coordinates. Calling this can be skipped when there is no text insertion point; however if there is an insertion point, editors must call this method.

Android reference for android.view.inputmethod.CursorAnchorInfo.Builder.setInsertionMarkerLocation.

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