property Items.ItemParent (Item as HITEM) as HITEM

Returns the handle of the parent item.

TypeDescription
Item as HITEM A long expression that indicates the item's handle.
HITEM A long expression that indicates the handle of 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 group is able to handle more root items. To get the collection of root items you can use RootCount and RootItem properties.