System.Web.UI.ChtmlTextWriter.OnStyleAttributeRender Method

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

Syntax

protected override bool OnStyleAttributeRender (string styleAttrName, string value, HtmlTextWriterStyle key)

Parameters

styleAttrName
Documentation for this section has not yet been entered.
value
A string containing the value that is assigned to name.
key
The System.Web.UI.HtmlTextWriterStyle associated with name.

Returns

true if the style can be rendered; otherwise, false.

Remarks

The ChtmlTextWriter.OnStyleAttributeRender(string, string, HtmlTextWriterStyle) method returns false when key is equal to the HtmlTextWriterStyle.TextDecoration field and the value is "line-through".

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0