property Element.ChildCount as Long
Counts the number of child elements.

TypeDescription
Long A Long expression that indicates the count of child elements.
The ChildCount property counts the number of child elements. The VisibleChildCount property specifies the list of visible children. The Children property specifies the list of child elements. Use the Parent property to change the element's parent. 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 ParentChangeElement event occurs when the element's parent is changed.