ChtmlTextWriter.OnStyleAttributeRender Method (String, String, HtmlTextWriterStyle)


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

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

protected override bool OnStyleAttributeRender(
	string name,
	string value,
	HtmlTextWriterStyle key


Type: System.String

A string containing the name of the style attribute to render.

Type: System.String

A string containing the value that is assigned to name.

Type: System.Web.UI.HtmlTextWriterStyle

The HtmlTextWriterStyle associated with name.

Return Value

Type: System.Boolean

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

The OnStyleAttributeRender method returns false when key is equal to the TextDecoration field and the value is "line-through".

.NET Framework
Available since 2.0
Return to top