HtmlElement.NextSibling Property

 

Gets the next element at the same level as this element in the document tree.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public HtmlElement NextSibling { get; }

Property Value

Type: System.Windows.Forms.HtmlElement

An HtmlElement representing the element to the right of the current element.

Use NextSibling in conjunction with FirstChild to walk the document tree for an HTML element.

.NET Framework
Available since 2.0
Return to top
Show: