wRootItemCount Property (Specific to Win32TreeView Controls)

Applies to TestComplete 15.64, last modified on May 16, 2024
This property is obsolete. See the Remarks section below.


A tree view can hold several root items (nodes). The wRootItemCount property returns the total number of root items in the given tree view control.



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 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

An integer value that specifies the total number of root items in the given tree view.


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 number of root items of the tree view control, use the Count property of the TreeViewItemCollection object returned by the control’s wItems property.

See Also

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

Highlight search results