Selection.GetSelectionStart Method

Definition

Overloads

GetSelectionStart(ICharSequence)

Return the offset of the selection anchor or cursor, or -1 if there is no selection or cursor.

GetSelectionStart(String)

Return the offset of the selection anchor or cursor, or -1 if there is no selection or cursor.

GetSelectionStart(ICharSequence)

Return the offset of the selection anchor or cursor, or -1 if there is no selection or cursor.

[Android.Runtime.Register("getSelectionStart", "(Ljava/lang/CharSequence;)I", "")]
public static int GetSelectionStart (Java.Lang.ICharSequence? text);
[<Android.Runtime.Register("getSelectionStart", "(Ljava/lang/CharSequence;)I", "")>]
static member GetSelectionStart : Java.Lang.ICharSequence -> int

Parameters

Returns

Int32
Attributes

Remarks

Java documentation for android.text.Selection.getSelectionStart(java.lang.CharSequence).

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

GetSelectionStart(String)

Return the offset of the selection anchor or cursor, or -1 if there is no selection or cursor.

public static int GetSelectionStart (string? text);
static member GetSelectionStart : string -> int

Parameters

text
String

Returns

Int32

Remarks

Java documentation for android.text.Selection.getSelectionStart(java.lang.CharSequence).

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