HtmlTextWriterStyle HtmlTextWriterStyle HtmlTextWriterStyle HtmlTextWriterStyle Enum

Definition

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

public enum class HtmlTextWriterStyle
public enum HtmlTextWriterStyle
type HtmlTextWriterStyle = 
Public Enum HtmlTextWriterStyle
Inheritance
HtmlTextWriterStyleHtmlTextWriterStyleHtmlTextWriterStyleHtmlTextWriterStyle

Fields

BackgroundColor BackgroundColor BackgroundColor BackgroundColor 0

Specifies the HTML backgroundcolor style.

BackgroundImage BackgroundImage BackgroundImage BackgroundImage 1

Specifies the HTML backgroundimage style.

BorderCollapse BorderCollapse BorderCollapse BorderCollapse 2

Specifies the HTML bordercollapse style.

BorderColor BorderColor BorderColor BorderColor 3

Specifies the HTML bordercolor style.

BorderStyle BorderStyle BorderStyle BorderStyle 4

Specifies the HTML borderstyle style.

BorderWidth BorderWidth BorderWidth BorderWidth 5

Specifies the HTML borderwidth style.

Color Color Color Color 6

Specifies the HTML color style.

Cursor Cursor Cursor Cursor 16

Specifies the HTML cursor style.

Direction Direction Direction Direction 17

Specifies the HTML direction style.

Display Display Display Display 18

Specifies the HTML display style.

Filter Filter Filter Filter 19

Specifies the HTML filter style.

FontFamily FontFamily FontFamily FontFamily 7

Specifies the HTML fontfamily style.

FontSize FontSize FontSize FontSize 8

Specifies the HTML fontsize style.

FontStyle FontStyle FontStyle FontStyle 9

Specifies the HTML fontstyle style.

FontVariant FontVariant FontVariant FontVariant 20

Specifies the HTML fontvariant style.

FontWeight FontWeight FontWeight FontWeight 10

Specifies the HTML fontheight style.

Height Height Height Height 11

Specifies the HTML height style.

Left Left Left Left 21

Specifies the HTML left style.

ListStyleImage ListStyleImage ListStyleImage ListStyleImage 14

Specifies the HTML liststyleimage style.

ListStyleType ListStyleType ListStyleType ListStyleType 15

Specifies the HTML liststyletype style.

Margin Margin Margin Margin 22

Specifies the HTML margin style.

MarginBottom MarginBottom MarginBottom MarginBottom 23

Specifies the HTML marginbottom style.

MarginLeft MarginLeft MarginLeft MarginLeft 24

Specifies the HTML marginleft style.

MarginRight MarginRight MarginRight MarginRight 25

Specifies the HTML marginright style.

MarginTop MarginTop MarginTop MarginTop 26

Specifies the HTML margintop style.

Overflow Overflow Overflow Overflow 27

Specifies the HTML overflow style.

OverflowX OverflowX OverflowX OverflowX 28

Specifies the HTML overflowx style.

OverflowY OverflowY OverflowY OverflowY 29

Specifies the HTML overflowy style.

Padding Padding Padding Padding 30

Specifies the HTML padding style.

PaddingBottom PaddingBottom PaddingBottom PaddingBottom 31

Specifies the HTML paddingbottom style.

PaddingLeft PaddingLeft PaddingLeft PaddingLeft 32

Specifies the HTML paddingleft style.

PaddingRight PaddingRight PaddingRight PaddingRight 33

Specifies the HTML paddingright style.

PaddingTop PaddingTop PaddingTop PaddingTop 34

Specifies the HTML paddingtop style.

Position Position Position Position 35

Specifies the HTML position style.

TextAlign TextAlign TextAlign TextAlign 36

Specifies the HTML textalign style.

TextDecoration TextDecoration TextDecoration TextDecoration 12

Specifies the HTML textdecoration style.

TextOverflow TextOverflow TextOverflow TextOverflow 38

Specifies the HTML textoverflow style.

Top Top Top Top 39

Specifies the HTML top style.

VerticalAlign VerticalAlign VerticalAlign VerticalAlign 37

Specifies the HTML verticalalign style.

Visibility Visibility Visibility Visibility 40

Specifies the HTML visibility style.

WhiteSpace WhiteSpace WhiteSpace WhiteSpace 41

Specifies the HTML whitespace style.

Width Width Width Width 13

Specifies the HTML width style.

ZIndex ZIndex ZIndex ZIndex 42

Specifies the HTML zindex style.

Examples

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" );
writer.AddStyleAttribute(HtmlTextWriterStyle.Color, "Red");
writer.AddStyleAttribute(HtmlTextWriterStyle.Color, "Red")

Remarks

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

Applies to

See also