Lingua

SelectGesture.Builder.SetSelectionArea(RectF) Method

Definition

Set rectangular single/multiline text selection area intersecting with text.

[Android.Runtime.Register("setSelectionArea", "(Landroid/graphics/RectF;)Landroid/view/inputmethod/SelectGesture$Builder;", "", ApiSince=34)]
public Android.Views.InputMethods.SelectGesture.Builder SetSelectionArea(Android.Graphics.RectF area);
[<Android.Runtime.Register("setSelectionArea", "(Landroid/graphics/RectF;)Landroid/view/inputmethod/SelectGesture$Builder;", "", ApiSince=34)>]
member this.SetSelectionArea : Android.Graphics.RectF -> Android.Views.InputMethods.SelectGesture.Builder

Parameters

area
RectF

RectF (in screen coordinates) for which text will be selection. This value cannot be null.

Returns

Attributes

Remarks

Set rectangular single/multiline text selection area intersecting with text. The resulting selection would be performed for all text intersecting rectangle. The selection includes the first word/character in the rectangle, and the last word/character in the rectangle, and includes everything in between even if it's not in the rectangle. Intersection is determined using setGranularity(int). e.g. HandwritingGesture.GRANULARITY_WORD includes all the words with their width/height center included in the selection rectangle.

Android reference for android.view.inputmethod.SelectGesture.Builder.setSelectionArea.

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