Język

DeleteGesture.Builder.SetDeletionArea(RectF) Method

Definition

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

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

Parameters

area
RectF

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

Returns

Attributes

Remarks

Set rectangular single/multiline text deletion area intersecting with text. The resulting deletion would be performed for all text intersecting rectangle. The deletion 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 deletion rectangle.

Android reference for android.view.inputmethod.DeleteGesture.Builder.setDeletionArea.

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