property Items.AcceptSetParent (Item as HITEM, NewParent as HITEM) as Boolean
Retrieves a value indicating whether the SetParent method can be accomplished.

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

Use this property to make sure that SetParent can be called. The AcceptSetParent property checks if an item can be child of another item.