Interface IElementTraversal
Namespace: Aspose.Html.Dom.Traversal
Assembly: Aspose.HTML.dll (25.2.0)
The ElementTraversal interface is a set of read-only attributes which allow an author to easily navigate between elements in a document. In conforming implementations of Element Traversal, all objects that implement Element must also implement the ElementTraversal interface.
[ComVisible(true)]
[DOMObject]
[DOMNoInterfaceObject]
public interface IElementTraversal
Properties
ChildElementCount
Returns the current number of element nodes that are children of this element. 0 if this element has no child nodes that are of nodeType 1.
[DOMName("childElementCount")]
int ChildElementCount { get; }
Property Value
FirstElementChild
Returns the first child element node of this element. null if this element has no child elements.
[DOMName("firstElementChild")]
[DOMNullable]
Element FirstElementChild { get; }
Property Value
LastElementChild
Returns the last child element node of this element. null if this element has no child elements.
[DOMName("lastElementChild")]
[DOMNullable]
Element LastElementChild { get; }
Property Value
NextElementSibling
Returns the next sibling element node of this element. null if this element has no element sibling nodes that come after this one in the document tree.
[DOMName("nextElementSibling")]
Element NextElementSibling { get; }
Property Value
PreviousElementSibling
Returns the previous sibling element node of this element. null if this element has no element sibling nodes that come before this one in the document tree.
[DOMName("previousElementSibling")]
Element PreviousElementSibling { get; }