Share via


SurroundingText.SelectionStart Property

Definition

Returns the text offset of the start of the selection in the surrounding text.

public int SelectionStart { [Android.Runtime.Register("getSelectionStart", "()I", "", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getSelectionStart", "()I", "", ApiSince=31)>]
member this.SelectionStart : int

Property Value

Attributes

Remarks

Returns the text offset of the start of the selection in the surrounding text.

A selection is the current range of the text that is selected by the user, or the current position of the cursor. A cursor is a selection where the start and end are at the same offset.

Java documentation for android.view.inputmethod.SurroundingText.getSelectionStart().

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