HtmlTextWriterStyle Enumeration
TOC
Collapse the table of content
Expand the table of content

HtmlTextWriterStyle Enumeration

 

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

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

public enum class HtmlTextWriterStyle

Member nameDescription
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.

Cursor

Specifies the HTML cursor style.

Direction

Specifies the HTML direction style.

Display

Specifies the HTML display style.

Filter

Specifies the HTML filter style.

FontFamily

Specifies the HTML fontfamily style.

FontSize

Specifies the HTML fontsize style.

FontStyle

Specifies the HTML fontstyle style.

FontVariant

Specifies the HTML fontvariant style.

FontWeight

Specifies the HTML fontheight style.

Height

Specifies the HTML height style.

Left

Specifies the HTML left style.

ListStyleImage

Specifies the HTML liststyleimage style.

ListStyleType

Specifies the HTML liststyletype style.

Margin

Specifies the HTML margin style.

MarginBottom

Specifies the HTML marginbottom style.

MarginLeft

Specifies the HTML marginleft style.

MarginRight

Specifies the HTML marginright style.

MarginTop

Specifies the HTML margintop style.

Overflow

Specifies the HTML overflow style.

OverflowX

Specifies the HTML overflowx style.

OverflowY

Specifies the HTML overflowy style.

Padding

Specifies the HTML padding style.

PaddingBottom

Specifies the HTML paddingbottom style.

PaddingLeft

Specifies the HTML paddingleft style.

PaddingRight

Specifies the HTML paddingright style.

PaddingTop

Specifies the HTML paddingtop style.

Position

Specifies the HTML position style.

TextAlign

Specifies the HTML textalign style.

TextDecoration

Specifies the HTML textdecoration style.

TextOverflow

Specifies the HTML textoverflow style.

Top

Specifies the HTML top style.

VerticalAlign

Specifies the HTML verticalalign style.

Visibility

Specifies the HTML visibility style.

WhiteSpace

Specifies the HTML whitespace style.

Width

Specifies the HTML width style.

ZIndex

Specifies the HTML zindex style.

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

The following example uses the HtmlTextWriterStyle enumeration with the AddStyleAttribute method to add a color style attribute to an HTML element and sets its value.

writer->AddStyleAttribute( HtmlTextWriterStyle::Color, "Red" );

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft