HtmlNodeCollectionFindMatch Method

Return the first item matching the specified pattern.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public HtmlNodeItem FindMatch(
	Func<HtmlNodeItem, bool> match,
	bool recurse = true
)

Parameters

match  FuncHtmlNodeItem, Boolean
Reference to the function pattern to match.
recurse  Boolean  (Optional)
Value indicating whether to return match from any level.

Return Value

HtmlNodeItem
Reference to the specified item, if found. Otherwise, null.

See Also