HtmlNodeItemGetOuterNodeOfType(HtmlNodeItem, String) Method

Return the specified node type encapsulating the provided node.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static HtmlNodeItem GetOuterNodeOfType(
	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