wSelectionEnd Property (Edit Controls)

Applies to TestComplete 15.63, last modified on April 23, 2024

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:

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.

If no text is selected, returns the position of the cursor in the control.

For Qt LineEdit, Qt TextEdit: If no text is selected, the property returns -1.

Remarks

Note for Telerik RadControls for WinForms 2011.1 users: Due to malfunction of the Telerik MaskedEditBox control, the wSelectionEnd property of the TelerikMaskedEditBox object may return an incorrect value.

See Also

Getting the Selected Text in an Edit Control in Desktop Windows Applications
wSelection Property (Edit Controls)
wSelectionStart Property (Edit Controls)
wSelectionEnd Property (Specific to DevExpressMemoEdit, DevExpressTextEditand SilverlightTextBox Controls)

Highlight search results