InputConnectionWrapper.SetComposingText メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
SetComposingText(ICharSequence, Int32) |
追加する |
SetComposingText(String, Int32) |
追加する |
SetComposingText(ICharSequence, Int32, TextAttribute) |
追加する |
SetComposingText(String, Int32, TextAttribute) |
追加する |
SetComposingText(ICharSequence, Int32)
追加する
[Android.Runtime.Register("setComposingText", "(Ljava/lang/CharSequence;I)Z", "GetSetComposingText_Ljava_lang_CharSequence_IHandler")]
public virtual bool SetComposingText (Java.Lang.ICharSequence? text, int newCursorPosition);
[<Android.Runtime.Register("setComposingText", "(Ljava/lang/CharSequence;I)Z", "GetSetComposingText_Ljava_lang_CharSequence_IHandler")>]
abstract member SetComposingText : Java.Lang.ICharSequence * int -> bool
override this.SetComposingText : Java.Lang.ICharSequence * int -> bool
パラメーター
- text
- ICharSequence
必要に応じてスタイルを含むテキストを作成します。 テキストにスタイル オブジェクトがアタッチされていない場合は、テキストを作成するための既定のスタイルが使用されます。 スタイル オブジェクトをテキストにアタッチする方法を参照してください ISpanned 。 SpannableString と SpannableStringBuilder は、 インターフェイス ISpannedの 2 つの実装です。
- newCursorPosition
- Int32
テキストの周囲の新しいカーソル位置。 0 の場合 > 、これはテキストの末尾を基準にして 1 になります。= 0 の場合 <、これはテキストの先頭を基準とします。 したがって、値 1 を指定すると、常にフルテキストが挿入された後の位置に進みます。 これは、指定したテキストをエディターが変更できるため、カーソルをテキスト内に配置できないことに注意してください。そのため、場所を正しく指定することはできません。
戻り値
実装
- 属性
注釈
追加する
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
SetComposingText(String, Int32)
SetComposingText(ICharSequence, Int32, TextAttribute)
追加する
[Android.Runtime.Register("setComposingText", "(Ljava/lang/CharSequence;ILandroid/view/inputmethod/TextAttribute;)Z", "GetSetComposingText_Ljava_lang_CharSequence_ILandroid_view_inputmethod_TextAttribute_Handler", ApiSince=33)]
public virtual bool SetComposingText (Java.Lang.ICharSequence text, int newCursorPosition, Android.Views.InputMethods.TextAttribute? textAttribute);
[<Android.Runtime.Register("setComposingText", "(Ljava/lang/CharSequence;ILandroid/view/inputmethod/TextAttribute;)Z", "GetSetComposingText_Ljava_lang_CharSequence_ILandroid_view_inputmethod_TextAttribute_Handler", ApiSince=33)>]
abstract member SetComposingText : Java.Lang.ICharSequence * int * Android.Views.InputMethods.TextAttribute -> bool
override this.SetComposingText : Java.Lang.ICharSequence * int * Android.Views.InputMethods.TextAttribute -> bool
パラメーター
- text
- ICharSequence
- newCursorPosition
- Int32
- textAttribute
- TextAttribute
戻り値
実装
- 属性
注釈
追加する
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
SetComposingText(String, Int32, TextAttribute)
追加する
public bool SetComposingText (string text, int newCursorPosition, Android.Views.InputMethods.TextAttribute? textAttribute);
abstract member SetComposingText : string * int * Android.Views.InputMethods.TextAttribute -> bool
override this.SetComposingText : string * int * Android.Views.InputMethods.TextAttribute -> bool
パラメーター
- text
- String
- newCursorPosition
- Int32
- textAttribute
- TextAttribute
戻り値
実装
注釈
追加する
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。