HtmlTextWriterStyle HtmlTextWriterStyle HtmlTextWriterStyle HtmlTextWriterStyle Enum

Definizione

Specifica gli stili HTML disponibili per il flusso di output di un oggetto HtmlTextWriter oppure Html32TextWriter.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
Ereditarietà
HtmlTextWriterStyleHtmlTextWriterStyleHtmlTextWriterStyleHtmlTextWriterStyle

Campi

BackgroundColor BackgroundColor BackgroundColor BackgroundColor 0

Specifica lo stile HTML backgroundcolor.Specifies the HTML backgroundcolor style.

BackgroundImage BackgroundImage BackgroundImage BackgroundImage 1

Specifica lo stile HTML backgroundimage.Specifies the HTML backgroundimage style.

BorderCollapse BorderCollapse BorderCollapse BorderCollapse 2

Specifica lo stile HTML bordercollapse.Specifies the HTML bordercollapse style.

BorderColor BorderColor BorderColor BorderColor 3

Specifica lo stile HTML bordercolor.Specifies the HTML bordercolor style.

BorderStyle BorderStyle BorderStyle BorderStyle 4

Specifica lo stile HTML borderstyle.Specifies the HTML borderstyle style.

BorderWidth BorderWidth BorderWidth BorderWidth 5

Specifica lo stile HTML borderwidth.Specifies the HTML borderwidth style.

Color Color Color Color 6

Specifica lo stile HTML color.Specifies the HTML color style.

Cursor Cursor Cursor Cursor 16

Specifica lo stile HTML cursor.Specifies the HTML cursor style.

Direction Direction Direction Direction 17

Specifica lo stile HTML direction.Specifies the HTML direction style.

Display Display Display Display 18

Specifica lo stile HTML display.Specifies the HTML display style.

Filter Filter Filter Filter 19

Specifica lo stile HTML filter.Specifies the HTML filter style.

FontFamily FontFamily FontFamily FontFamily 7

Specifica lo stile HTML fontfamily.Specifies the HTML fontfamily style.

FontSize FontSize FontSize FontSize 8

Specifica lo stile HTML fontsize.Specifies the HTML fontsize style.

FontStyle FontStyle FontStyle FontStyle 9

Specifica lo stile HTML fontstyle.Specifies the HTML fontstyle style.

FontVariant FontVariant FontVariant FontVariant 20

Specifica lo stile HTML fontvariant.Specifies the HTML fontvariant style.

FontWeight FontWeight FontWeight FontWeight 10

Specifica lo stile HTML fontheight.Specifies the HTML fontheight style.

Height Height Height Height 11

Specifica lo stile HTML height.Specifies the HTML height style.

Left Left Left Left 21

Specifica lo stile HTML left.Specifies the HTML left style.

ListStyleImage ListStyleImage ListStyleImage ListStyleImage 14

Specifica lo stile HTML liststyleimage.Specifies the HTML liststyleimage style.

ListStyleType ListStyleType ListStyleType ListStyleType 15

Specifica lo stile HTML liststyletype.Specifies the HTML liststyletype style.

Margin Margin Margin Margin 22

Specifica lo stile HTML margin.Specifies the HTML margin style.

MarginBottom MarginBottom MarginBottom MarginBottom 23

Specifica lo stile HTML marginbottom.Specifies the HTML marginbottom style.

MarginLeft MarginLeft MarginLeft MarginLeft 24

Specifica lo stile HTML marginleft.Specifies the HTML marginleft style.

MarginRight MarginRight MarginRight MarginRight 25

Specifica lo stile HTML marginright.Specifies the HTML marginright style.

MarginTop MarginTop MarginTop MarginTop 26

Specifica lo stile HTML margintop.Specifies the HTML margintop style.

Overflow Overflow Overflow Overflow 27

Specifica lo stile HTML overflow.Specifies the HTML overflow style.

OverflowX OverflowX OverflowX OverflowX 28

Specifica lo stile HTML overflowx.Specifies the HTML overflowx style.

OverflowY OverflowY OverflowY OverflowY 29

Specifica lo stile HTML overflowy.Specifies the HTML overflowy style.

Padding Padding Padding Padding 30

Specifica lo stile HTML padding.Specifies the HTML padding style.

PaddingBottom PaddingBottom PaddingBottom PaddingBottom 31

Specifica lo stile HTML paddingbottom.Specifies the HTML paddingbottom style.

PaddingLeft PaddingLeft PaddingLeft PaddingLeft 32

Specifica lo stile HTML paddingleft.Specifies the HTML paddingleft style.

PaddingRight PaddingRight PaddingRight PaddingRight 33

Specifica lo stile HTML paddingright.Specifies the HTML paddingright style.

PaddingTop PaddingTop PaddingTop PaddingTop 34

Specifica lo stile HTML paddingtop.Specifies the HTML paddingtop style.

Position Position Position Position 35

Specifica lo stile HTML position.Specifies the HTML position style.

TextAlign TextAlign TextAlign TextAlign 36

Specifica lo stile HTML textalign.Specifies the HTML textalign style.

TextDecoration TextDecoration TextDecoration TextDecoration 12

Specifica lo stile HTML textdecoration.Specifies the HTML textdecoration style.

TextOverflow TextOverflow TextOverflow TextOverflow 38

Specifica lo stile HTML textoverflow.Specifies the HTML textoverflow style.

Top Top Top Top 39

Specifica lo stile HTML top.Specifies the HTML top style.

VerticalAlign VerticalAlign VerticalAlign VerticalAlign 37

Specifica lo stile HTML verticalalign.Specifies the HTML verticalalign style.

Visibility Visibility Visibility Visibility 40

Specifica lo stile HTML visibility.Specifies the HTML visibility style.

WhiteSpace WhiteSpace WhiteSpace WhiteSpace 41

Specifica lo stile HTML whitespace.Specifies the HTML whitespace style.

Width Width Width Width 13

Specifica lo stile HTML width.Specifies the HTML width style.

ZIndex ZIndex ZIndex ZIndex 42

Specifica lo stile HTML zindex.Specifies the HTML zindex style.

Esempi

Nell'esempio seguente viene usata HtmlTextWriterStyle l'enumerazione con AddStyleAttribute il metodo per aggiungere color un attributo di stile a un elemento HTML e ne viene impostato il valore.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")

Commenti

HtmlTextWritergli Html32TextWriter oggetti e usano questi valori di enumerazione per registrare le stringhe HTML nello stile HTML appropriato.HtmlTextWriter and Html32TextWriter objects use these enumeration values to register HTML strings to the proper HTML style.

Si applica a

Vedi anche