System.Web.UI.HtmlTextWriter.OnStyleAttributeRender Method

Determines whether the specified markup style attribute and its value can be rendered to the current markup element.

Syntax

protected virtual bool OnStyleAttributeRender (string name, string value, HtmlTextWriterStyle key)

Parameters

name
A string containing the name of the style attribute to render.
value
A string containing the value that is assigned to the style attribute.
key
The System.Web.UI.HtmlTextWriterStyle associated with the style attribute.

Returns

Always true.

Remarks

The System.Web.UI.HtmlTextWriter class implementation of the HtmlTextWriter.OnStyleAttributeRender(string, string, HtmlTextWriterStyle) method always returns true. The HtmlTextWriter.OnStyleAttributeRender(string, string, HtmlTextWriterStyle) overrides can determine whether a style attribute will be rendered to the page.

Requirements

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