AccessibilityNodeInfo.TextSelectionEnd Property

Definition

Gets the text selection end if text is selected.

public virtual int TextSelectionEnd { [Android.Runtime.Register("getTextSelectionEnd", "()I", "GetGetTextSelectionEndHandler")] get; }
[<get: Android.Runtime.Register("getTextSelectionEnd", "()I", "GetGetTextSelectionEndHandler")>]
member this.TextSelectionEnd : int

Property Value

The text selection end, the cursor location if there is no selection, or -1 if there is no text selection and no cursor.

Attributes

Remarks

Gets the text selection end if text is selected.

If no text is selected, both this method and AccessibilityNodeInfo#getTextSelectionStart() return the same value: the current location of the cursor.

Java documentation for android.view.accessibility.AccessibilityNodeInfo.getTextSelectionEnd().

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