CursorAnchorInfo.Builder.AddCharacterBounds 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.
Adds the bounding box of the character specified with the index.
[Android.Runtime.Register("addCharacterBounds", "(IFFFFI)Landroid/view/inputmethod/CursorAnchorInfo$Builder;", "")]
public Android.Views.InputMethods.CursorAnchorInfo.Builder? AddCharacterBounds(int index, float left, float top, float right, float bottom, Android.Views.InputMethods.CursorAnchorFlags flags);
[<Android.Runtime.Register("addCharacterBounds", "(IFFFFI)Landroid/view/inputmethod/CursorAnchorInfo$Builder;", "")>]
member this.AddCharacterBounds : int * single * single * single * single * Android.Views.InputMethods.CursorAnchorFlags -> Android.Views.InputMethods.CursorAnchorInfo.Builder
Parameters
- index
- Int32
index of the character in Java chars units. Must be specified in ascending order across successive calls.
- left
- Single
x coordinate of the left edge of the character in local coordinates.
- top
- Single
y coordinate of the top edge of the character in local coordinates.
- right
- Single
x coordinate of the right edge of the character in local coordinates.
- bottom
- Single
y coordinate of the bottom edge of the character in local coordinates.
- flags
- CursorAnchorFlags
flags for this character bounds. See CursorAnchorInfo.FLAG_HAS_VISIBLE_REGION, CursorAnchorInfo.FLAG_HAS_INVISIBLE_REGION and CursorAnchorInfo.FLAG_IS_RTL. These flags must be specified when necessary.
Returns
- Attributes
Remarks
Adds the bounding box of the character specified with the index.
Android reference for android.view.inputmethod.CursorAnchorInfo.Builder.addCharacterBounds.
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.