HtmlTextWriterStyle Wyliczenie

Definicja

Określa style HTML dostępne dla strumienia wyjściowego HtmlTextWriter obiektu lub.Html32TextWriter

public enum class HtmlTextWriterStyle
public enum HtmlTextWriterStyle
type HtmlTextWriterStyle = 
Public Enum HtmlTextWriterStyle
Dziedziczenie
HtmlTextWriterStyle

Pola

BackgroundColor 0

Określa styl HTML backgroundcolor .

BackgroundImage 1

Określa styl HTML backgroundimage .

BorderCollapse 2

Określa styl HTML bordercollapse .

BorderColor 3

Określa styl HTML bordercolor .

BorderStyle 4

Określa styl HTML borderstyle .

BorderWidth 5

Określa styl HTML borderwidth .

Color 6

Określa styl HTML color .

Cursor 16

Określa styl HTML cursor .

Direction 17

Określa styl HTML direction .

Display 18

Określa styl HTML display .

Filter 19

Określa styl HTML filter .

FontFamily 7

Określa styl HTML fontfamily .

FontSize 8

Określa styl HTML fontsize .

FontStyle 9

Określa styl HTML fontstyle .

FontVariant 20

Określa styl HTML fontvariant .

FontWeight 10

Określa styl HTML fontheight .

Height 11

Określa styl HTML height .

Left 21

Określa styl HTML left .

ListStyleImage 14

Określa styl HTML liststyleimage .

ListStyleType 15

Określa styl HTML liststyletype .

Margin 22

Określa styl HTML margin .

MarginBottom 23

Określa styl HTML marginbottom .

MarginLeft 24

Określa styl HTML marginleft .

MarginRight 25

Określa styl HTML marginright .

MarginTop 26

Określa styl HTML margintop .

Overflow 27

Określa styl HTML overflow .

OverflowX 28

Określa styl HTML overflowx .

OverflowY 29

Określa styl HTML overflowy .

Padding 30

Określa styl HTML padding .

PaddingBottom 31

Określa styl HTML paddingbottom .

PaddingLeft 32

Określa styl HTML paddingleft .

PaddingRight 33

Określa styl HTML paddingright .

PaddingTop 34

Określa styl HTML paddingtop .

Position 35

Określa styl HTML position .

TextAlign 36

Określa styl HTML textalign .

TextDecoration 12

Określa styl HTML textdecoration .

TextOverflow 38

Określa styl HTML textoverflow .

Top 39

Określa styl HTML top .

VerticalAlign 37

Określa styl HTML verticalalign .

Visibility 40

Określa styl HTML visibility .

WhiteSpace 41

Określa styl HTML whitespace .

Width 13

Określa styl HTML width .

ZIndex 42

Określa styl HTML zindex .

Przykłady

W poniższym przykładzie użyto wyliczenia HtmlTextWriterStyle z AddStyleAttribute metodą , aby dodać color atrybut stylu do elementu HTML i ustawić jego wartość.

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

Uwagi

HtmlTextWriter i Html32TextWriter obiekty używają tych wartości wyliczenia do rejestrowania ciągów HTML w odpowiednim stylu HTML.

Dotyczy

Zobacz też