property Element.Parent as Element
Specifies the element's parent.

TypeDescription
Element An Element object that specifies the parent element.
The Parent property indicates the element's parent. By default, the Parent property is nothing, which indicates that the element has no parent. Use the Parent property to change the element's parent. The ParentChangeElement event occurs when the element's parent is changed. Use the AllowInsertObject property to specify whether the user can change the element's parent at runtime by dragging the element over the other. The AllowInsertChild property of the Element object specifies whether the element supports adding child elements at runtime. The AllowChangeParent property of the Element object specifies whether the element can change its parent at runtime. The Children property specifies the list of child elements. The Level property specifies the level in the hierarchy of the element.

The following screen shot shows the elements arranged as a tree: