HtmlNodeItemGetRoot Method

Return the root-most node of the specified item.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static HtmlNodeItem GetRoot(
	HtmlNodeItem node
)

Parameters

node  HtmlNodeItem
Reference to the node for which a root reference will be found.

Return Value

HtmlNodeItem
Reference to the root-most node available in the heirarchy, if found. Otherwise, null;

See Also