ChtmlTextWriter.OnStyleAttributeRender Method (String, String, HtmlTextWriterStyle)
.NET Framework (current version)
Determines whether the specified cHTML markup style attribute and its value can be rendered to the current markup element.
Assembly: System.Web (in System.Web.dll)
protected override bool OnStyleAttributeRender( string name, string value, HtmlTextWriterStyle key )
Parameters
- name
-
Type:
System.String
A string containing the name of the style attribute to render.
- value
-
Type:
System.String
A string containing the value that is assigned to name.
- key
-
Type:
System.Web.UI.HtmlTextWriterStyle
The HtmlTextWriterStyle associated with name.
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
Available since 2.0
Show: