property Items.RootCount as Long

Retrieves the number of root objects in the Items collection.

TypeDescription
Long A long value that indicates the count of root items into Items collection.

A root item is an item that has no parent (ItemParent() = 0). Use the RootItem property of the Items object to enumerates the root items. Use the AddItem to add root items to the control. Use the InsertItem method to insert child items.