HtmlNodeCollectionGetLastNodeOfType Method

Get the last node in the hierarchy of the specified type.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static HtmlNodeItem GetLastNodeOfType(
	HtmlNodeCollection nodes,
	string nodeType
)

Parameters

nodes  HtmlNodeCollection
Collection of nodes to inspect.
nodeType  String
Type of node to search for.

Return Value

HtmlNodeItem
The last node in the heirarchy of the specified type, if found. Otherwise, null.

See Also