property Items.AcceptSetParent (Item as HITEM, NewParent as HITEM) as Boolean

Verifies whether the item can be the child of another item

TypeDescription
Item as HITEM A long expression that indicates the handle of the item.
NewParent as HITEM A long expression that indicates the handle of the parent item.
Boolean A boolean expression that indicates whether the Item can be child of the NewParent item.

The AcceptSetParent property doesn't change the parent item.  Use the SetParent method to change the item's parent. Use the ItemParent property to retrieve the item's parent. Use the InsertItem method to add child items to another item. An item is called root, if it has no parent ( ItemParent() gets 0 ).