property Element.Level as Long
Specifies the level of the element in a hierarchy.

TypeDescription
Long A Long expression that specifies the level of the element in the hierarchy. For instance, an element with no parent has the Level 0.
The Level property specifies the level in the hierarchy of the element. The Parent property specifies the parent of the element. The Level of the Element is defined as the Level of the Parent element + 1. The ChildCount property specifies the number of child elements. The Children property specifies the list of child elements. 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.