Language

AssistStructure.ViewNode.TextSelectionEnd Property

Definition

Gets the end offset of the text selection.

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

Property Value

The recorded selection end as a zero-based UTF-16 offset. The value is -1 if no text record exists or the text was last set without selection offsets. When a cursor position is recorded without a selection, the start and end offsets are equal. See TextSelectionStart for the start offset.

Attributes

Remarks

When a cursor position is recorded without a selection, the end offset equals TextSelectionStart.

It's only relevant when the AssistStructure is used for assist purposes, not for autofill purposes.

Java documentation for android.app.assist.AssistStructure.ViewNode.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