Sdílet prostřednictvím


SurroundingText Constructors

Definition

Overloads

SurroundingText(ICharSequence, Int32, Int32, Int32)

Constructor.

SurroundingText(String, Int32, Int32, Int32)

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)

[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
selectionStart
Int32
selectionEnd
Int32
offset
Int32
Attributes

Applies to