ActionMode.SetTextSelection メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| SetTextSelection(ICharSequence, Int32, Int32, LocaleList) |
処理する ActionMode のテキスト選択データを転送します。 |
| SetTextSelection(String, Int32, Int32, LocaleList) |
処理する ActionMode のテキスト選択データを転送します。 |
SetTextSelection(ICharSequence, Int32, Int32, LocaleList)
処理する ActionMode のテキスト選択データを転送します。
[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
パラメーター
- text
- ICharSequence
テキスト ビューのテキスト。 テキストが空または null の場合、clearTextSelection() の呼び出しと同じ、前のテキスト選択とそのアクション分類の結果がクリアされます。
- start
- Int32
選択範囲の先頭。 このパラメーターが < 0 または end > の場合、IllegalArgumentException がスローされます。
- end
- Int32
選択範囲の末尾。 このパラメーターが 0 < または開始 < 場合は、IllegalArgumentException がスローされます。
- locales
- LocaleList
テキスト/ビュー/選択範囲のロケール。 空の場合は、既定または不明なロケールが使用されます。
- 属性
適用対象
SetTextSelection(String, Int32, Int32, LocaleList)
処理する ActionMode のテキスト選択データを転送します。
public void SetTextSelection(string? text, int start, int end, Android.OS.LocaleList locales);
member this.SetTextSelection : string * int * int * Android.OS.LocaleList -> unit
パラメーター
- text
- String
テキスト ビューのテキスト。 テキストが空または null の場合、clearTextSelection() の呼び出しと同じ、前のテキスト選択とそのアクション分類の結果がクリアされます。
- start
- Int32
選択範囲の先頭。 このパラメーターが < 0 または end > の場合、IllegalArgumentException がスローされます。
- end
- Int32
選択範囲の末尾。 このパラメーターが 0 < または開始 < 場合は、IllegalArgumentException がスローされます。
- locales
- LocaleList
テキスト/ビュー/選択範囲のロケール。 空の場合は、既定または不明なロケールが使用されます。