HtmlNodeItemGetOutermostNodeOfType Method

Return the specified node type encapsulating the provided node at the outermost level.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static HtmlNodeItem GetOutermostNodeOfType(
	HtmlNodeItem node,
	string nodeType
)

Parameters

node  HtmlNodeItem
Instance of the node which is either the specified type, or contained by the specified type.
nodeType  String
The type of Node to find in the provided or parent instances.

Return Value

HtmlNodeItem
If the specified type is found, then the instance of that type. Otherwise, null.

See Also