property Items.ChildCount (Item as HITEM) as Long

Retrieves the number of children items.

TypeDescription
Item as HITEM A long expression that indicates the item's handle.
Long A long value that indicates the number of child items.

Use the ChildCount property checks whether an item has child items. Use the ItemChild property to get the first child item, if there is on, 0 else. Use the ExpandItem property to expand or collapse an item. Use the ItemCount property to get the number of items in the control. Use the ItemHasChildren property to specify whether the item should display a +/- sign even if it contains no child items.