HtmlTextWriterStyle Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Fields
BackgroundColor | 0 | Specifies the HTML |
BackgroundImage | 1 | Specifies the HTML |
BorderCollapse | 2 | Specifies the HTML |
BorderColor | 3 | Specifies the HTML |
BorderStyle | 4 | Specifies the HTML |
BorderWidth | 5 | Specifies the HTML |
Color | 6 | Specifies the HTML |
Cursor | 16 | Specifies the HTML |
Direction | 17 | Specifies the HTML |
Display | 18 | Specifies the HTML |
Filter | 19 | Specifies the HTML |
FontFamily | 7 | Specifies the HTML |
FontSize | 8 | Specifies the HTML |
FontStyle | 9 | Specifies the HTML |
FontVariant | 20 | Specifies the HTML |
FontWeight | 10 | Specifies the HTML |
Height | 11 | Specifies the HTML |
Left | 21 | Specifies the HTML |
ListStyleImage | 14 | Specifies the HTML |
ListStyleType | 15 | Specifies the HTML |
Margin | 22 | Specifies the HTML |
MarginBottom | 23 | Specifies the HTML |
MarginLeft | 24 | Specifies the HTML |
MarginRight | 25 | Specifies the HTML |
MarginTop | 26 | Specifies the HTML |
Overflow | 27 | Specifies the HTML |
OverflowX | 28 | Specifies the HTML |
OverflowY | 29 | Specifies the HTML |
Padding | 30 | Specifies the HTML |
PaddingBottom | 31 | Specifies the HTML |
PaddingLeft | 32 | Specifies the HTML |
PaddingRight | 33 | Specifies the HTML |
PaddingTop | 34 | Specifies the HTML |
Position | 35 | Specifies the HTML |
TextAlign | 36 | Specifies the HTML |
TextDecoration | 12 | Specifies the HTML |
TextOverflow | 38 | Specifies the HTML |
Top | 39 | Specifies the HTML |
VerticalAlign | 37 | Specifies the HTML |
Visibility | 40 | Specifies the HTML |
WhiteSpace | 41 | Specifies the HTML |
Width | 13 | Specifies the HTML |
ZIndex | 42 | Specifies the HTML |
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
Povratne informacije
https://aka.ms/ContentUserFeedback.
Kmalu na voljo: V letu 2024 bomo ukinili storitev Težave v storitvi GitHub kot mehanizem za povratne informacije za vsebino in jo zamenjali z novim sistemom za povratne informacije. Za več informacij si oglejte:Pošlji in prikaži povratne informacije za