wSelectionStart Property (Edit Controls)

Applies to TestComplete 15.68, last modified on October 03, 2024

Description

Use the wSelectionStart property to get the position of the first selected character in the text.

Declaration

TestObj.wSelectionStart

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 first 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 wSelectionStart 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)
wSelectionEnd Property (Edit Controls)
wSelectionStart Property (Specific to DevExpressMemoEdit, DevExpressTextEdit, JFXSwingTextField and SilverlightTextBox Controls)

Highlight search results