HtmlTextWriterTag 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 tags that can be passed to an HtmlTextWriter or Html32TextWriter object output stream.
public enum class HtmlTextWriterTag
public enum HtmlTextWriterTag
type HtmlTextWriterTag =
Public Enum HtmlTextWriterTag
- Inheritance
Fields
A | 1 | The HTML |
Acronym | 2 | The HTML |
Address | 3 | The HTML |
Area | 4 | The HTML |
B | 5 | The HTML |
Base | 6 | The HTML |
Basefont | 7 | The HTML |
Bdo | 8 | The HTML |
Bgsound | 9 | The HTML |
Big | 10 | The HTML |
Blockquote | 11 | The HTML |
Body | 12 | The HTML |
Br | 13 | The HTML |
Button | 14 | The HTML |
Caption | 15 | The HTML |
Center | 16 | The HTML |
Cite | 17 | The HTML |
Code | 18 | The HTML |
Col | 19 | The HTML |
Colgroup | 20 | The HTML |
Dd | 21 | The HTML |
Del | 22 | The HTML |
Dfn | 23 | The HTML |
Dir | 24 | The HTML |
Div | 25 | The HTML |
Dl | 26 | The HTML |
Dt | 27 | The HTML |
Em | 28 | The HTML |
Embed | 29 | The HTML |
Fieldset | 30 | The HTML |
Font | 31 | The HTML |
Form | 32 | The HTML |
Frame | 33 | The HTML |
Frameset | 34 | The HTML |
H1 | 35 | The HTML |
H2 | 36 | The HTML |
H3 | 37 | The HTML |
H4 | 38 | The HTML |
H5 | 39 | The HTML |
H6 | 40 | The HTML |
Head | 41 | The HTML |
Hr | 42 | The HTML |
Html | 43 | The HTML |
I | 44 | The HTML |
Iframe | 45 | The HTML |
Img | 46 | The HTML |
Input | 47 | The HTML |
Ins | 48 | The HTML |
Isindex | 49 | The HTML |
Kbd | 50 | The HTML |
Label | 51 | The HTML |
Legend | 52 | The HTML |
Li | 53 | The HTML |
Link | 54 | The HTML |
Map | 55 | The HTML |
Marquee | 56 | The HTML |
Menu | 57 | The HTML |
Meta | 58 | The HTML |
Nobr | 59 | The HTML |
Noframes | 60 | The HTML |
Noscript | 61 | The HTML |
Object | 62 | The HTML |
Ol | 63 | The HTML |
Option | 64 | The HTML |
P | 65 | The HTML |
Param | 66 | The HTML |
Pre | 67 | The HTML |
Q | 68 | The HTML |
Rt | 69 | The DHTML |
Ruby | 70 | The DHTML |
S | 71 | The HTML |
Samp | 72 | The HTML |
Script | 73 | The HTML |
Select | 74 | The HTML |
Small | 75 | The HTML |
Span | 76 | The HTML |
Strike | 77 | The HTML |
Strong | 78 | The HTML |
Style | 79 | The HTML |
Sub | 80 | The HTML |
Sup | 81 | The HTML |
Table | 82 | The HTML |
Tbody | 83 | The HTML |
Td | 84 | The HTML |
Textarea | 85 | The HTML |
Tfoot | 86 | The HTML |
Th | 87 | The HTML |
Thead | 88 | The HTML |
Title | 89 | The HTML |
Tr | 90 | The HTML |
Tt | 91 | The HTML |
U | 92 | The HTML |
Ul | 93 | The HTML |
Unknown | 0 | The string passed as an HTML tag is not recognized. |
Var | 94 | The HTML |
Wbr | 95 | The HTML |
Xml | 96 | The HTML |
Examples
The following example demonstrates the use of the HtmlTextWriterTag
enumeration. The Img
field is used during rendering of an HtmlTextWriter named writer
.
// Control the encoding of attributes.
// Simple known values do not need encoding.
writer->AddAttribute( HtmlTextWriterAttribute::Alt, "Encoding, \"Required\"", true );
writer->AddAttribute( "myattribute", "No "encoding " required", false );
writer->RenderBeginTag( HtmlTextWriterTag::Img );
writer->RenderEndTag();
writer->WriteLine();
// Control the encoding of attributes.
// Simple known values do not need encoding.
writer.AddAttribute(HtmlTextWriterAttribute.Alt, "Encoding, \"Required\"", true);
writer.AddAttribute("myattribute", "No "encoding " required", false);
writer.RenderBeginTag(HtmlTextWriterTag.Img);
writer.RenderEndTag();
writer.WriteLine();
' Control the encoding of attributes.
' Simple known values do not need encoding.
writer.AddAttribute(HtmlTextWriterAttribute.Alt, "Encoding, ""Required""", True)
writer.AddAttribute("myattribute", "No "encoding " required", False)
writer.RenderBeginTag(HtmlTextWriterTag.Img)
writer.RenderEndTag()
writer.WriteLine()
Remarks
The HtmlTextWriterTag
enumeration allows the output stream to write HTML markup, along with HTML server controls, in response to a web request.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om