InputConnectionWrapper.SetComposingText Method

Definition

Overloads

SetComposingText(ICharSequence, Int32)

To be added

SetComposingText(String, Int32)

To be added

SetComposingText(ICharSequence, Int32, TextAttribute)

To be added

SetComposingText(String, Int32, TextAttribute)

To be added

SetComposingText(ICharSequence, Int32)

To be added

[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

Parameters

text
ICharSequence

The composing text with styles if necessary. If no style object attached to the text, the default style for composing text is used. See ISpanned for how to attach style object to the text. SpannableString and SpannableStringBuilder are two implementations of the interface ISpanned.

newCursorPosition
Int32

The new cursor position around the text. If > 0, this is relative to the end of the text - 1; if <= 0, this is relative to the start of the text. So a value of 1 will always advance you to the position after the full text being inserted. Note that this means you can't position the cursor within the text, because the editor can make modifications to the text you are providing so it is not possible to correctly specify locations there.

Returns

Implements

Attributes

Remarks

To be added

Java documentation for android.view.inputmethod.InputConnectionWrapper.setComposingText(java.lang.CharSequence, int).

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

SetComposingText(String, Int32)

To be added

public bool SetComposingText (string? text, int newCursorPosition);
member this.SetComposingText : string * int -> bool

Parameters

text
String
newCursorPosition
Int32

Returns

Remarks

To be added

Java documentation for android.view.inputmethod.InputConnectionWrapper.setComposingText(java.lang.CharSequence, int).

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

SetComposingText(ICharSequence, Int32, TextAttribute)

To be added

[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

Parameters

newCursorPosition
Int32
textAttribute
TextAttribute

Returns

Implements

Attributes

Remarks

To be added

Java documentation for android.view.inputmethod.InputConnectionWrapper.setComposingText(java.lang.CharSequence, int, android.view.inputmethod.TextAttribute).

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

SetComposingText(String, Int32, TextAttribute)

To be added

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

Parameters

text
String
newCursorPosition
Int32
textAttribute
TextAttribute

Returns

Implements

Remarks

To be added

Java documentation for android.view.inputmethod.InputConnectionWrapper.setComposingText(java.lang.CharSequence, int, android.view.inputmethod.TextAttribute).

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