property Item.Parent as Item
Gets the item's parent, if the current item belongs to a submenu/popup.

TypeDescription
Item An Item object that specifies the parent item of the current item.
The Parent property of the Item object returns an empty object, if the item contains no parent. The Parent item property can be used to access the parent of the item, when it is contained by a sub-menu. Use the Items property to access the Item objects in a sub-menu item.