Count Property (TreeViewItemCollection Objects)

Applies to TestComplete 14.80, last modified on April 20, 2021

Description

The Count property returns the total number of child items of the specified control's item, to which the TestObj object corresponds.

Declaration

TestObj.Count

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

This property is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.

Property Value

An integer value specifying the total number of child items for the selected item.

Remarks

Since the current node is specified via the Item parameter of the parent’s Item property, it can be different from the node that is selected in the tree view.

Working with Win32TreeView, you can get the number of child items in the selected tree view node. To do this, use the wItemCount property.

Example

To view an example that demonstrates how to use the Count property, see Getting Selected Tree View Items.

See Also

TreeViewItemCollection Object
Item Property (TreeViewItemCollection Objects)

Highlight search results