Language

InputConnectionWrapper.SetComposingRegion Method

Definition

Overloads

Name Description
SetComposingRegion(Int32, Int32)

Mark a certain region of text as composing text.

SetComposingRegion(Int32, Int32, TextAttribute)

The variant of InputConnection.setComposingRegion(int,int).

SetComposingRegion(Int32, Int32)

Mark a certain region of text as composing text.

[Android.Runtime.Register("setComposingRegion", "(II)Z", "GetSetComposingRegion_IIHandler")]
public virtual bool SetComposingRegion(int start, int end);
[<Android.Runtime.Register("setComposingRegion", "(II)Z", "GetSetComposingRegion_IIHandler")>]
abstract member SetComposingRegion : int * int -> bool
override this.SetComposingRegion : int * int -> bool

Parameters

start
Int32

the position in the text at which the composing region begins

end
Int32

the position in the text at which the composing region ends

Returns

The value returned by the target connection.

Implements

Attributes

Remarks

Mark a certain region of text as composing text. If there was a composing region, the characters are left as they were and the composing span removed, as if finishComposingText() has been called. The default style for composing text is used.

Java documentation for android.view.inputmethod.InputConnectionWrapper.setComposingRegion(int, 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

SetComposingRegion(Int32, Int32, TextAttribute)

The variant of InputConnection.setComposingRegion(int,int).

[Android.Runtime.Register("setComposingRegion", "(IILandroid/view/inputmethod/TextAttribute;)Z", "GetSetComposingRegion_IILandroid_view_inputmethod_TextAttribute_Handler", ApiSince=33)]
public virtual bool SetComposingRegion(int start, int end, Android.Views.InputMethods.TextAttribute? textAttribute);
[<Android.Runtime.Register("setComposingRegion", "(IILandroid/view/inputmethod/TextAttribute;)Z", "GetSetComposingRegion_IILandroid_view_inputmethod_TextAttribute_Handler", ApiSince=33)>]
abstract member SetComposingRegion : int * int * Android.Views.InputMethods.TextAttribute -> bool
override this.SetComposingRegion : int * int * Android.Views.InputMethods.TextAttribute -> bool

Parameters

start
Int32

the position in the text at which the composing region begins

end
Int32

the position in the text at which the composing region ends

textAttribute
TextAttribute

Optional text metadata passed to the target connection.

Returns

The value returned by the target connection.

Implements

Attributes

Remarks

The variant of InputConnection.setComposingRegion(int,int). This method is used to allow the IME to provide extra information while setting up text.

Java documentation for android.view.inputmethod.InputConnectionWrapper.setComposingRegion(int, 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