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[] nodeTypes
)

Parameters

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

Return Value

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

See Also