property Element.LastChild as Element
Gets the last child of the element.

TypeDescription
Element An Element object that specifies the last child element of the current element.
The LastChild property returns nothing if the current element contains no child elements. The LastChild property indicates the last child element. The FirstChild property returns the first child element. Use the FirstChild and NextSiblingChild properties to enumerate child elements one by one. Use the LastChild and PrevSiblingChild properties to backward enumerate all child elements. The NextVisibleChild property indicates the next visible element. The PrevVisibleChild property indicates the previously visible element. The Children property retrieves the child elements at once. The ChildCount property specifies the number 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.