wSelection Property (Specific to Win32TreeView Controls)

Applies to TestComplete 15.47, last modified on January 20, 2023

Description

The wSelection property returns the “full path” to the tree item that is currently selected. This path includes the text of the selected item as well as the text of its parent items, separated by pipeline characters (“|”). The path starts with the pipeline character as well, which indicates that the path is relative to the tree root.

Declaration

TestObj.wSelection

Read-Only Property String
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 object:

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 path to the currently selected tree item.

See Also

SelectItem Method (Specific to Win32TreeView Controls)
wItem Property (Specific to Win32TreeView Controls)
wItemCount Property (Specific to Win32TreeView Controls)
wRootItem Property (Specific to Win32TreeView Controls)
wRootItemCount Property (Specific to Win32TreeView Controls)

Highlight search results