CursorAnchorInfo.Builder.SetInsertionMarkerLocation Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The horizontal position of the insertion marker in local coordinates, transformed by the matrix for the screen. This should be calculated or compatible with GetPrimaryHorizontal(Int32).
- lineTop
- Single
The top of the insertion marker in local coordinates, transformed by the matrix for the screen. This should be calculated or compatible with GetLineTop(Int32).
- lineBaseline
- Single
The baseline of the insertion marker in local coordinates, transformed by the matrix for the screen. This should be calculated or compatible with GetLineBaseline(Int32).
- lineBottom
- Single
The bottom of the insertion marker in local coordinates, transformed by the matrix for the screen. This should be calculated or compatible with GetLineBottom(Int32).
- flags
- CursorAnchorFlags
Flags for the insertion marker, such as HasVisibleRegion.
Returns
This builder after the insertion marker is stored.
- 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.