HtmlTextWriter.WriteStyleAttribute Method (String, String, Boolean)
.NET Framework 2.0
Writes the specified style attribute and value to the output stream, and encodes the value, if specified.
Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public void WriteStyleAttribute ( String name, String value, boolean fEncode )
public function WriteStyleAttribute ( name : String, value : String, fEncode : boolean )
Not applicable.
Parameters
- name
The style attribute to write to the output stream.
- value
The value assigned to the style attribute.
- fEncode
true to encode the style attribute and its assigned value; otherwise, false.
The WriteStyleAttribute method writes the style attribute in the following form:
name = value ;
The HtmlAttributeEncode method is used to encode the value parameter.
Community Additions
ADD
Show: