NodeParentElement Property

The read-only parentElement property of Node interface returns the DOM node's parent Element, or null if the node either has no parent, or its parent isn't a DOM Element.

Namespace: Aspose.Html.Dom
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 22.1
Syntax
public Element ParentElement { get; }

Property Value

Type: Element

An Element that is the parent element of the current node, or null if there isn't one.

Return Value

Type: Element
Remarks

Reference:

See Also