Język

SurroundingText Constructors

Definition

Overloads

SurroundingText(ICharSequence, Int32, Int32, Int32)

Constructor.

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;III)V", "", ApiSince=31)]
public SurroundingText(Java.Lang.ICharSequence text, int selectionStart, int selectionEnd, int offset);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;III)V", "", ApiSince=31)>]
new Android.Views.InputMethods.SurroundingText : Java.Lang.ICharSequence * int * int * int -> Android.Views.InputMethods.SurroundingText

Parameters

text
ICharSequence

The surrounding text.

selectionStart
Int32

The text offset of the start of the selection in the surrounding text. Reversed selection is allowed.

selectionEnd
Int32

The text offset of the end of the selection in the surrounding text. Reversed selection is allowed.

offset
Int32

The text offset between the start of the editor's text and the start of the surrounding text. -1 indicates the offset is unknown.

Attributes

Remarks

Constructor.

Java documentation for android.view.inputmethod.SurroundingText.SurroundingText(java.lang.CharSequence, int, 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

SurroundingText(String, Int32, Int32, Int32)

Constructor.

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;III)V", "", ApiSince=31)]
public SurroundingText(string text, int selectionStart, int selectionEnd, int offset);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;III)V", "", ApiSince=31)>]
new Android.Views.InputMethods.SurroundingText : string * int * int * int -> Android.Views.InputMethods.SurroundingText

Parameters

text
String

The surrounding text. This value cannot be null.

selectionStart
Int32

The text offset of the start of the selection in the surrounding text. Reversed selection is allowed. Value is 0 or greater

selectionEnd
Int32

The text offset of the end of the selection in the surrounding text. Reversed selection is allowed. Value is 0 or greater

offset
Int32

The text offset between the start of the editor's text and the start of the surrounding text. -1 indicates the offset is unknown. Value is -1 or greater

Attributes

Remarks

Constructor.

Android reference for android.view.inputmethod.SurroundingText.SurroundingText.

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