System.Web.UI.HtmlTextWriter.IsStyleAttributeDefined Method

Determines whether the specified markup style attribute is rendered during the next call to the erload:System.Web.UI.HtmlTextWriter.RenderBeginTag method.

Syntax

protected bool IsStyleAttributeDefined (HtmlTextWriterStyle key)

Parameters

key
The System.Web.UI.HtmlTextWriterStyle associated with the attribute.

Returns

true if the attribute will be rendered during the next call to the erload:System.Web.UI.HtmlTextWriter.RenderBeginTag method; otherwise, false.

Remarks

To get the value that will be rendered with the specified style attribute, use the HtmlTextWriter.IsStyleAttributeDefined(HtmlTextWriterStyle, String@) overload of the HtmlTextWriter.IsStyleAttributeDefined(HtmlTextWriterStyle) method.

Requirements

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