Lingua

ActionMode.SetTextSelection Method

Definition

Overloads

Name Description
SetTextSelection(ICharSequence, Int32, Int32, LocaleList)

Forward text selection data for ActionMode to process.

SetTextSelection(String, Int32, Int32, LocaleList)

Forward text selection data for ActionMode to process.

SetTextSelection(ICharSequence, Int32, Int32, LocaleList)

Forward text selection data for ActionMode to process.

[Android.Runtime.Register("setTextSelection", "(Ljava/lang/CharSequence;IILandroid/os/LocaleList;)V", "GetSetTextSelection_Ljava_lang_CharSequence_IILandroid_os_LocaleList_Handler", ApiSince=37)]
public virtual void SetTextSelection(Java.Lang.ICharSequence? text, int start, int end, Android.OS.LocaleList locales);
[<Android.Runtime.Register("setTextSelection", "(Ljava/lang/CharSequence;IILandroid/os/LocaleList;)V", "GetSetTextSelection_Ljava_lang_CharSequence_IILandroid_os_LocaleList_Handler", ApiSince=37)>]
abstract member SetTextSelection : Java.Lang.ICharSequence * int * int * Android.OS.LocaleList -> unit
override this.SetTextSelection : Java.Lang.ICharSequence * int * int * Android.OS.LocaleList -> unit

Parameters

text
ICharSequence

The text of the text view. If the text is empty or null, it clears the previous text selection and its action classification results, equivalent to calling clearTextSelection().

start
Int32

The start of the selection. If this parameter is < 0 or > end, it throws an IllegalArgumentException.

end
Int32

The end of the selection. If this parameter is < 0 or < start, it throws an IllegalArgumentException.

locales
LocaleList

The locales of the texts/view/selection. If it is empty, a default/unknown locale will be used.

Attributes

Applies to

SetTextSelection(String, Int32, Int32, LocaleList)

Forward text selection data for ActionMode to process.

public void SetTextSelection(string? text, int start, int end, Android.OS.LocaleList locales);
member this.SetTextSelection : string * int * int * Android.OS.LocaleList -> unit

Parameters

text
String

The text of the text view. If the text is empty or null, it clears the previous text selection and its action classification results, equivalent to calling clearTextSelection().

start
Int32

The start of the selection. If this parameter is < 0 or > end, it throws an IllegalArgumentException.

end
Int32

The end of the selection. If this parameter is < 0 or < start, it throws an IllegalArgumentException.

locales
LocaleList

The locales of the texts/view/selection. If it is empty, a default/unknown locale will be used.

Applies to