System.Web.UI.HtmlTextWriter.GetStyleName Method

Obtains the markup style attribute name associated with the specified System.Web.UI.HtmlTextWriterStyle enumeration value.

Syntax

protected string GetStyleName (HtmlTextWriterStyle styleKey)

Parameters

styleKey
The System.Web.UI.HtmlTextWriterStyle to obtain the style attribute name for.

Returns

The style attribute name associated with the System.Web.UI.HtmlTextWriterStyle enumeration value specified in styleKey.

Remarks

If styleKey is not a valid System.Web.UI.HtmlTextWriterStyle object, the HtmlTextWriter.GetStyleName(HtmlTextWriterStyle) method returns an empty string ("").

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0