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 to count the number of child items. Use the ItemChild property to get the handle of the first child item, if it exists. Use the ItemHasChildren property to built a virtual tree. A virtual tree loads items when the user expands an item. Use the ExpandItem property to expand or collapse an item. Use the InsertItem method to insert child items. Use the InsertControlItem method to insert child ActiveX controls.