SurroundingText Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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