property Items.ItemParent (Item as HITEM) as HITEM

Returns the handle of the item's parent item.

TypeDescription
Item as HITEM A long expression that indicates the item's handle.
HITEM A long expression that indicates the item's handle that indicates the parent item.

To change the item's parent call SetParent method. To verify if an item can be parent for another item you can call AcceptSetParent property. If the item has no parent the ItemParent property retrieves 0. If the ItemParent gets 0 for an item, than the item is called root. The control is able to handle more root items. Use the RootCount and RootItem properties to enumerate the root items collection. Use the InsertItem method to insert a child item. The NextVisibleItem or NextSiblingItem gets the next visible, sibling item.