Node.NextSibling

Node.NextSibling property

Returns the node immediately following the specified one in their parent’s ChildNodes, or returns null if the specified node is the last child in the parent element.

public Node NextSibling { get; }

Property Value

A Node representing the next sibling of the current node, or null if there are none.

Remarks

Reference:

DOM Standard.

See Also