Description
Use the wSelectionEnd
property to get the position of the last selected character in the text.
Declaration
TestObj.wSelection
Read-Only Property | Integer |
TestObj | A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section |
Applies To
The property is applied to the following objects:
Android EditText, iOS TextField, iOS TextView and 2 more objects, Xamarin.Forms Editor, Xamarin.Forms Entry « Collapse the list
View Mode
To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
Property Value
The index of the last selected character in the text.
Remarks
If no text is selected, wSelectionEnd
indicates the position of the cursor.
See Also
Testing Android Applications
Testing iOS Applications
Selecting Text Within the Edit Text Control
Selecting Text Within an Edit Control
wText Property (Mobile Edit Controls)
wSelection Property (Mobile Controls)
wSelectionStart Property (Mobile Controls)