HtmlAttributeCollectionGetActiveStyle Method
Return the active value of the specified style in the current node or
its ancestors.
Namespace: HtmlAssembly: Html (in Html.dll) Version: 25.3013.4544
public static string GetActiveStyle(
HtmlNodeItem node,
string styleName,
string defaultValue
)
Public Shared Function GetActiveStyle (
node As HtmlNodeItem,
styleName As String,
defaultValue As String
) As String
No code example is currently available or this language may not be supported.
- node HtmlNodeItem
-
Reference to the current node to be tested.
- styleName String
-
Name of the style to check for.
- defaultValue String
-
The default value to return in case no active value was found.
String
The active value for the specified style on the provided node or its
ancestors, if found. Otherwise, the default value, if not null.
Otherwise, an empty string.