HtmlNodeCollectionGetRoot Method

Return the root-most node collection of the specified collection.

Definition

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

Parameters

nodes  HtmlNodeCollection
Reference to the collection for which a root reference will be found.

Return Value

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

See Also