HtmlAttributeItemGetStyle Method

Return the value of the specified style in the provided attribute.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static string GetStyle(
	HtmlAttributeItem attribute,
	string styleName
)

Parameters

attribute  HtmlAttributeItem
Reference to the attribute to inspect.
styleName  String
Name of the style property to return.

Return Value

String
Value of the specified style property, if found. Otherwise, an empty string.

See Also