HtmlTextWriterTag 列舉


指定可以傳遞至 HtmlTextWriterHtml32TextWriter 物件輸出資料流的 HTML 標記。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


A 1

HTML a 項目。The HTML a element.

Acronym 2

HTML acronym 項目。The HTML acronym element.

Address 3

HTML address 項目。The HTML address element.

Area 4

HTML area 項目。The HTML area element.

B 5

HTML b 項目。The HTML b element.

Base 6

HTML base 項目。The HTML base element.

Basefont 7

HTML basefont 項目。The HTML basefont element.

Bdo 8

HTML bdo 項目。The HTML bdo element.

Bgsound 9

HTML bgsound 項目。The HTML bgsound element.

Big 10

HTML big 項目。The HTML big element.

Blockquote 11

HTML blockquote 項目。The HTML blockquote element.

Body 12

HTML body 項目。The HTML body element.

Br 13

HTML br 項目。The HTML br element.

Button 14

HTML button 項目。The HTML button element.

Caption 15

HTML caption 項目。The HTML caption element.

Center 16

HTML center 項目。The HTML center element.

Cite 17

HTML cite 項目。The HTML cite element.

Code 18

HTML code 項目。The HTML code element.

Col 19

HTML col 項目。The HTML col element.

Colgroup 20

HTML colgroup 項目。The HTML colgroup element.

Dd 21

HTML dd 項目。The HTML dd element.

Del 22

HTML del 項目。The HTML del element.

Dfn 23

HTML dfn 項目。The HTML dfn element.

Dir 24

HTML dir 項目。The HTML dir element.

Div 25

HTML div 項目。The HTML div element.

Dl 26

HTML dl 項目。The HTML dl element.

Dt 27

HTML dt 項目。The HTML dt element.

Em 28

HTML em 項目。The HTML em element.

Embed 29

HTML embed 項目。The HTML embed element.

Fieldset 30

HTML fieldset 項目。The HTML fieldset element.

Font 31

HTML font 項目。The HTML font element.

Form 32

HTML form 項目。The HTML form element.

Frame 33

HTML frame 項目。The HTML frame element.

Frameset 34

HTML frameset 項目。The HTML frameset element.

H1 35

HTML H1 項目。The HTML H1 element.

H2 36

HTML H2 項目。The HTML H2 element.

H3 37

HTML H3 項目。The HTML H3 element.

H4 38

HTML H4 項目。The HTML H4 element.

H5 39

HTML H5 項目。The HTML H5 element.

H6 40

HTML H6 項目。The HTML H6 element.

Head 41

HTML head 項目。The HTML head element.

Hr 42

HTML hr 項目。The HTML hr element.

Html 43

HTML html 項目。The HTML html element.

I 44

HTML i 項目。The HTML i element.

Iframe 45

HTML iframe 項目。The HTML iframe element.

Img 46

HTML img 項目。The HTML img element.

Input 47

HTML input 項目。The HTML input element.

Ins 48

HTML ins 項目。The HTML ins element.

Isindex 49

HTML isindex 項目。The HTML isindex element.

Kbd 50

HTML kbd 項目。The HTML kbd element.

Label 51

HTML label 項目。The HTML label element.

Legend 52

HTML legend 項目。The HTML legend element.

Li 53

HTML li 項目。The HTML li element.


HTML link 項目。The HTML link element.

Map 55

HTML map 項目。The HTML map element.

Marquee 56

HTML marquee 項目。The HTML marquee element.

Menu 57

HTML menu 項目。The HTML menu element.

Meta 58

HTML meta 項目。The HTML meta element.

Nobr 59

HTML nobr 項目。The HTML nobr element.

Noframes 60

HTML noframes 項目。The HTML noframes element.

Noscript 61

HTML noscript 項目。The HTML noscript element.

Object 62

HTML object 項目。The HTML object element.

Ol 63

HTML ol 項目。The HTML ol element.

Option 64

HTML option 項目。The HTML option element.

P 65

HTML p 項目。The HTML p element.

Param 66

HTML param 項目。The HTML param element.

Pre 67

HTML pre 項目。The HTML pre element.

Q 68

HTML q 項目。The HTML q element.

Rt 69

DHTML rt 項目,它會指定 ruby 項目的文字。The DHTML rt element, which specifies text for the ruby element.

Ruby 70

DHTML ruby 項目。The DHTML ruby element.

S 71

HTML s 項目。The HTML s element.

Samp 72

HTML samp 項目。The HTML samp element.

Script 73

HTML script 項目。The HTML script element.

Select 74

HTML select 項目。The HTML select element.

Small 75

HTML small 項目。The HTML small element.

Span 76

HTML span 項目。The HTML span element.

Strike 77

HTML strike 項目。The HTML strike element.

Strong 78

HTML strong 項目。The HTML strong element.

Style 79

HTML style 項目。The HTML style element.

Sub 80

HTML sub 項目。The HTML sub element.

Sup 81

HTML sup 項目。The HTML sup element.

Table 82

HTML table 項目。The HTML table element.

Tbody 83

HTML tbody 項目。The HTML tbody element.

Td 84

HTML td 項目。The HTML td element.

Textarea 85

HTML textarea 項目。The HTML textarea element.

Tfoot 86

HTML tfoot 項目。The HTML tfoot element.

Th 87

HTML th 項目。The HTML th element.

Thead 88

HTML thead 項目。The HTML thead element.

Title 89

HTML title 項目。The HTML title element.

Tr 90

HTML tr 項目。The HTML tr element.

Tt 91

HTML tt 項目。The HTML tt element.

U 92

HTML u 項目。The HTML u element.

Ul 93

HTML ul 項目。The HTML ul element.

Unknown 0

無法辨認傳遞為 HTML 標記的字串。The string passed as an HTML tag is not recognized.

Var 94

HTML var 項目。The HTML var element.

Wbr 95

HTML wbr 項目。The HTML wbr element.

Xml 96

HTML xml 項目。The HTML xml element.


下列範例示範如何使用 HtmlTextWriterTag 列舉。The following example demonstrates the use of the HtmlTextWriterTag enumeration. Img 欄位會在名稱的呈現期間 HtmlTextWriter 使用 writerThe 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 );
// 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);
' 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)


HtmlTextWriterTag列舉可讓輸出資料流程撰寫 html 標記以及 html 伺服器控制項,以回應 web 要求。The HtmlTextWriterTag enumeration allows the output stream to write HTML markup, along with HTML server controls, in response to a web request.