HtmlNodeItemHasAncestorNodeType Method

Return a value indicating whether this node's parent or ancestors have the specified tag name.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static bool HasAncestorNodeType(
	HtmlNodeItem node,
	string tagName
)

Parameters

node  HtmlNodeItem
Child node at which to begin testing parents.
tagName  String
Tag name to test for.

Return Value

Boolean
True if the node's parent or any other ancestor have the specified tag name.

See Also