HtmlTextWriterTag HtmlTextWriterTag HtmlTextWriterTag HtmlTextWriterTag Enum

定義

指定可以傳遞至 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
繼承
HtmlTextWriterTagHtmlTextWriterTagHtmlTextWriterTagHtmlTextWriterTag

欄位

A A A A 1

HTML a 項目。The HTML a element.

Acronym Acronym Acronym Acronym 2

HTML acronym 項目。The HTML acronym element.

Address Address Address Address 3

HTML address 項目。The HTML address element.

Area Area Area Area 4

HTML area 項目。The HTML area element.

B B B B 5

HTML b 項目。The HTML b element.

Base Base Base Base 6

HTML base 項目。The HTML base element.

Basefont Basefont Basefont Basefont 7

HTML basefont 項目。The HTML basefont element.

Bdo Bdo Bdo Bdo 8

HTML bdo 項目。The HTML bdo element.

Bgsound Bgsound Bgsound Bgsound 9

HTML bgsound 項目。The HTML bgsound element.

Big Big Big Big 10

HTML big 項目。The HTML big element.

Blockquote Blockquote Blockquote Blockquote 11

HTML blockquote 項目。The HTML blockquote element.

Body Body Body Body 12

HTML body 項目。The HTML body element.

Br Br Br Br 13

HTML br 項目。The HTML br element.

Button Button Button Button 14

HTML button 項目。The HTML button element.

Caption Caption Caption Caption 15

HTML caption 項目。The HTML caption element.

Center Center Center Center 16

HTML center 項目。The HTML center element.

Cite Cite Cite Cite 17

HTML cite 項目。The HTML cite element.

Code Code Code Code 18

HTML code 項目。The HTML code element.

Col Col Col Col 19

HTML col 項目。The HTML col element.

Colgroup Colgroup Colgroup Colgroup 20

HTML colgroup 項目。The HTML colgroup element.

Dd Dd Dd Dd 21

HTML dd 項目。The HTML dd element.

Del Del Del Del 22

HTML del 項目。The HTML del element.

Dfn Dfn Dfn Dfn 23

HTML dfn 項目。The HTML dfn element.

Dir Dir Dir Dir 24

HTML dir 項目。The HTML dir element.

Div Div Div Div 25

HTML div 項目。The HTML div element.

Dl Dl Dl Dl 26

HTML dl 項目。The HTML dl element.

Dt Dt Dt Dt 27

HTML dt 項目。The HTML dt element.

Em Em Em Em 28

HTML em 項目。The HTML em element.

Embed Embed Embed Embed 29

HTML embed 項目。The HTML embed element.

Fieldset Fieldset Fieldset Fieldset 30

HTML fieldset 項目。The HTML fieldset element.

Font Font Font Font 31

HTML font 項目。The HTML font element.

Form Form Form Form 32

HTML form 項目。The HTML form element.

Frame Frame Frame Frame 33

HTML frame 項目。The HTML frame element.

Frameset Frameset Frameset Frameset 34

HTML frameset 項目。The HTML frameset element.

H1 H1 H1 H1 35

HTML H1 項目。The HTML H1 element.

H2 H2 H2 H2 36

HTML H2 項目。The HTML H2 element.

H3 H3 H3 H3 37

HTML H3 項目。The HTML H3 element.

H4 H4 H4 H4 38

HTML H4 項目。The HTML H4 element.

H5 H5 H5 H5 39

HTML H5 項目。The HTML H5 element.

H6 H6 H6 H6 40

HTML H6 項目。The HTML H6 element.

Head Head Head Head 41

HTML head 項目。The HTML head element.

Hr Hr Hr Hr 42

HTML hr 項目。The HTML hr element.

Html Html Html Html 43

HTML html 項目。The HTML html element.

I I I I 44

HTML i 項目。The HTML i element.

Iframe Iframe Iframe Iframe 45

HTML iframe 項目。The HTML iframe element.

Img Img Img Img 46

HTML img 項目。The HTML img element.

Input Input Input Input 47

HTML input 項目。The HTML input element.

Ins Ins Ins Ins 48

HTML ins 項目。The HTML ins element.

Isindex Isindex Isindex Isindex 49

HTML isindex 項目。The HTML isindex element.

Kbd Kbd Kbd Kbd 50

HTML kbd 項目。The HTML kbd element.

Label Label Label Label 51

HTML label 項目。The HTML label element.

Legend Legend Legend Legend 52

HTML legend 項目。The HTML legend element.

Li Li Li Li 53

HTML li 項目。The HTML li element.

54

HTML link 項目。The HTML link element.

Map Map Map Map 55

HTML map 項目。The HTML map element.

Marquee Marquee Marquee Marquee 56

HTML marquee 項目。The HTML marquee element.

Menu Menu Menu Menu 57

HTML menu 項目。The HTML menu element.

Meta Meta Meta Meta 58

HTML meta 項目。The HTML meta element.

Nobr Nobr Nobr Nobr 59

HTML nobr 項目。The HTML nobr element.

Noframes Noframes Noframes Noframes 60

HTML noframes 項目。The HTML noframes element.

Noscript Noscript Noscript Noscript 61

HTML noscript 項目。The HTML noscript element.

Object Object Object Object 62

HTML object 項目。The HTML object element.

Ol Ol Ol Ol 63

HTML ol 項目。The HTML ol element.

Option Option Option Option 64

HTML option 項目。The HTML option element.

P P P P 65

HTML p 項目。The HTML p element.

Param Param Param Param 66

HTML param 項目。The HTML param element.

Pre Pre Pre Pre 67

HTML pre 項目。The HTML pre element.

Q Q Q Q 68

HTML q 項目。The HTML q element.

Rt Rt Rt Rt 69

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

Ruby Ruby Ruby Ruby 70

DHTML ruby 項目。The DHTML ruby element.

S S S S 71

HTML s 項目。The HTML s element.

Samp Samp Samp Samp 72

HTML samp 項目。The HTML samp element.

Script Script Script Script 73

HTML script 項目。The HTML script element.

Select Select Select Select 74

HTML select 項目。The HTML select element.

Small Small Small Small 75

HTML small 項目。The HTML small element.

Span Span Span Span 76

HTML span 項目。The HTML span element.

Strike Strike Strike Strike 77

HTML strike 項目。The HTML strike element.

Strong Strong Strong Strong 78

HTML strong 項目。The HTML strong element.

Style Style Style Style 79

HTML style 項目。The HTML style element.

Sub Sub Sub Sub 80

HTML sub 項目。The HTML sub element.

Sup Sup Sup Sup 81

HTML sup 項目。The HTML sup element.

Table Table Table Table 82

HTML table 項目。The HTML table element.

Tbody Tbody Tbody Tbody 83

HTML tbody 項目。The HTML tbody element.

Td Td Td Td 84

HTML td 項目。The HTML td element.

Textarea Textarea Textarea Textarea 85

HTML textarea 項目。The HTML textarea element.

Tfoot Tfoot Tfoot Tfoot 86

HTML tfoot 項目。The HTML tfoot element.

Th Th Th Th 87

HTML th 項目。The HTML th element.

Thead Thead Thead Thead 88

HTML thead 項目。The HTML thead element.

Title Title Title Title 89

HTML title 項目。The HTML title element.

Tr Tr Tr Tr 90

HTML tr 項目。The HTML tr element.

Tt Tt Tt Tt 91

HTML tt 項目。The HTML tt element.

U U U U 92

HTML u 項目。The HTML u element.

Ul Ul Ul Ul 93

HTML ul 項目。The HTML ul element.

Unknown Unknown Unknown Unknown 0

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

Var Var Var Var 94

HTML var 項目。The HTML var element.

Wbr Wbr Wbr Wbr 95

HTML wbr 項目。The HTML wbr element.

Xml Xml Xml Xml 96

HTML xml 項目。The HTML xml element.

範例

下列範例示範HtmlTextWriterTag列舉的用法。The following example demonstrates the use of the HtmlTextWriterTag enumeration. Img呈現HtmlTextWriter名為writer的時, 會使用欄位。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()

備註

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.

適用於

另請參閱