HtmlAttributeCollectionHasAncestorStyle Method

Return a value indicating whether this node's parent or one of its ancestors contain the specified style.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.3013.4544
C#
public static bool HasAncestorStyle(
	HtmlNodeItem node,
	string styleName
)

Parameters

node  HtmlNodeItem
Reference to the node whose ancestors will be inspected.
styleName  String
The name of the style to test for.

Return Value

Boolean
True if the node's parent or other ancestors contain the specified style. Otherwise, false.

See Also