AssistStructure.ViewNode.TextSelectionEnd Property
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.
If #getText() is non-null, this is where the current selection starts.
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, or -1 when no text information is set. Equal, non-negative start and end offsets identify the cursor position. See TextSelectionStart for the start offset.
- Attributes
Remarks
If #getText() is non-null, this is where the current selection starts. If there is no selection, returns the same value as #getTextSelectionStart(), indicating the cursor position.
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.