Count property returns the total number of child items of the specified control's item, to which the TestObj object corresponds.
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
The property is applied to the following object:
This property is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.
An integer value specifying the total number of child items for the selected item.
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
To view an example that demonstrates how to use the
Count property, see Getting Selected Tree View Items in Desktop Windows Applications.
Item Property (TreeViewItemCollection Objects)