System.Web.UI.HtmlTextWriter.GetStyleKey Method

Obtains the System.Web.UI.HtmlTextWriterStyle enumeration value for the specified style.

Syntax

protected HtmlTextWriterStyle GetStyleKey (string styleName)

Parameters

styleName
The style attribute for which to obtain the System.Web.UI.HtmlTextWriterStyle.

Returns

The System.Web.UI.HtmlTextWriterStyle enumeration value corresponding to styleName.

Remarks

The HtmlTextWriter.GetStyleKey(string) method returns the value -1 typed as a System.Web.UI.HtmlTextWriterStyle value, if styleName does not correspond to any System.Web.UI.HtmlTextWriterStyle enumeration value.

Requirements

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