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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기