Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
NextSibling Property

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft