Export (0) Print
Expand All
Expand Minimize

HtmlTextWriterStyle Enumeration

Specifies the HTML styles available to an HtmlTextWriter or Html32TextWriter object output stream.

[Visual Basic]
<Serializable>
Public Enum HtmlTextWriterStyle
[C#]
[Serializable]
public enum HtmlTextWriterStyle
[C++]
[Serializable]
__value public enum HtmlTextWriterStyle
[JScript]
public
   Serializable
enum HtmlTextWriterStyle

Remarks

HtmlTextWriter and Html32TextWriter objects use these enumeration values to register HTML strings to the proper HTML style.

Members

Member name Description
BackgroundColor Specifies the HTML backgroundcolor style.
BackgroundImage Specifies the HTML backgroundimage style.
BorderCollapse Specifies the HTML bordercollapse style.
BorderColor Specifies the HTML bordercolor style.
BorderStyle Specifies the HTML borderstyle style.
BorderWidth Specifies the HTML borderwidth style.
Color Specifies the HTML color style.
FontFamily Specifies the HTML fontfamily style.
FontSize Specifies the HTML fontsize style.
FontStyle Specifies the HTML fontstyle style.
FontWeight Specifies the HTML fontweight style.
Height Specifies the HTML height style.
TextDecoration Specifies the HTML textdecoration style.
Width Specifies the HTML width style.

Example

[Visual Basic] 
writer.AddStyleAttribute(HtmlTextWriterStyle.Color, "Red")

[C#] 
writer.AddStyleAttribute(HtmlTextWriterStyle.Color, "Red");

[C++] 
writer->AddStyleAttribute(HtmlTextWriterStyle::Color, S"Red");

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Namespace: System.Web.UI

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

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

See Also

System.Web.UI Namespace | HtmlTextWriter

Show:
© 2014 Microsoft