HtmlAttributeCollectionGetActiveStyle Method

Return the active value of the specified style in the current node or its ancestors.

Definition

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

Parameters

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.

Return Value

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.

See Also