HtmlTextWriter.StyleEqualsChar Field
.NET Framework 3.0
Represents the style equals (:) character used to set style attributes equal to values.
Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
The StyleEqualsChar field is used by the WriteStyleAttribute method to delimit style names and values.
The following code example demonstrates how to render a FontWeight attribute and value of bold to the opening tag of an element. The code example uses the Write method with the StyleEqualsChar field as the parameter to render the character that sets the value of each style attribute.
This code example renders the following markup:
FontWeight:"bold"
Community Additions
ADD
Show: