wRootItem Property (Specific to Win32TreeView Controls)

Applies to TestComplete 15.70, last modified on December 17, 2024
This property is obsolete. See the Remarks section below.

Description

A tree view can have several top-level items (nodes). The wRootItem property returns the text of the root item specified by the Index parameter.

Declaration

TestObj.wRootItem(Index)

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
Index [in]    Required    Integer    

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.

Parameters

The property has the following parameter:

Index

Specifies the zero-based index of the desired child item. For example, the first child item has an index of 0, the second - 1, and so on. The index of the last child item is wRootItemCount-1.

Property Value

The text of the specified top-level item.

Remarks

The property is obsolete. It is supported for backward compatibility only. It is displayed neither in the Code Completion window nor in the Object Browser. To get the text of the root item, use the Text property of the TreeViewItem object that provides access to the desired item.

If you use Python or DelphiScript, you should enclose the parameter of the wRootItem property in square brackets: wRootItem[Index].

See Also

wRootItemCount Property (Specific to Win32TreeView Controls)
wItems Property (TreeView Controls)
wSelection Property (Specific to Win32TreeView Controls)

Highlight search results