HtmlAttributeCollectionHasAncestorStyle Method
Return a value indicating whether this node's parent or one of its
ancestors contain the specified style.
Namespace: HtmlAssembly: Html (in Html.dll) Version: 25.3013.4544
public static bool HasAncestorStyle(
HtmlNodeItem node,
string styleName
)
Public Shared Function HasAncestorStyle (
node As HtmlNodeItem,
styleName As String
) As Boolean
No code example is currently available or this language may not be supported.
- node HtmlNodeItem
-
Reference to the node whose ancestors will be inspected.
- styleName String
-
The name of the style to test for.
Boolean
True if the node's parent or other ancestors contain the specified
style. Otherwise, false.