wItemCount Property (Specific to Win32TreeView Controls)

Applies to TestComplete 15.63, last modified on April 10, 2024
This property is obsolete. See the Remarks section below.


A tree view item can hold several child items. The wItemCount property returns the total number of child items of the currently selected node.



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 the selected node’s child items.


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 child items of the currently selected item, use the Count property.

If there is no selected item in the tree view, wItemCount acts like wRootItemCount, that is, it returns the number of tree root items.

See Also

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

Highlight search results