HtmlTextWriterStyle Wyliczenie
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
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
Pola
| BackgroundColor | 0 | Określa styl HTML |
| BackgroundImage | 1 | Określa styl HTML |
| BorderCollapse | 2 | Określa styl HTML |
| BorderColor | 3 | Określa styl HTML |
| BorderStyle | 4 | Określa styl HTML |
| BorderWidth | 5 | Określa styl HTML |
| Color | 6 | Określa styl HTML |
| Cursor | 16 | Określa styl HTML |
| Direction | 17 | Określa styl HTML |
| Display | 18 | Określa styl HTML |
| Filter | 19 | Określa styl HTML |
| FontFamily | 7 | Określa styl HTML |
| FontSize | 8 | Określa styl HTML |
| FontStyle | 9 | Określa styl HTML |
| FontVariant | 20 | Określa styl HTML |
| FontWeight | 10 | Określa styl HTML |
| Height | 11 | Określa styl HTML |
| Left | 21 | Określa styl HTML |
| ListStyleImage | 14 | Określa styl HTML |
| ListStyleType | 15 | Określa styl HTML |
| Margin | 22 | Określa styl HTML |
| MarginBottom | 23 | Określa styl HTML |
| MarginLeft | 24 | Określa styl HTML |
| MarginRight | 25 | Określa styl HTML |
| MarginTop | 26 | Określa styl HTML |
| Overflow | 27 | Określa styl HTML |
| OverflowX | 28 | Określa styl HTML |
| OverflowY | 29 | Określa styl HTML |
| Padding | 30 | Określa styl HTML |
| PaddingBottom | 31 | Określa styl HTML |
| PaddingLeft | 32 | Określa styl HTML |
| PaddingRight | 33 | Określa styl HTML |
| PaddingTop | 34 | Określa styl HTML |
| Position | 35 | Określa styl HTML |
| TextAlign | 36 | Określa styl HTML |
| TextDecoration | 12 | Określa styl HTML |
| TextOverflow | 38 | Określa styl HTML |
| Top | 39 | Określa styl HTML |
| VerticalAlign | 37 | Określa styl HTML |
| Visibility | 40 | Określa styl HTML |
| WhiteSpace | 41 | Określa styl HTML |
| Width | 13 | Określa styl HTML |
| ZIndex | 42 | Określa styl HTML |
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.