HtmlTextWriterTag 列舉

定義

指定可以傳遞至 HtmlTextWriterHtml32TextWriter 物件輸出資料流的 HTML 標記。

public enum class HtmlTextWriterTag
public enum HtmlTextWriterTag
type HtmlTextWriterTag = 
Public Enum HtmlTextWriterTag
繼承
HtmlTextWriterTag

欄位

A 1

HTML a 項目。

Acronym 2

HTML acronym 項目。

Address 3

HTML address 項目。

Area 4

HTML area 項目。

B 5

HTML b 項目。

Base 6

HTML base 項目。

Basefont 7

HTML basefont 項目。

Bdo 8

HTML bdo 項目。

Bgsound 9

HTML bgsound 項目。

Big 10

HTML big 項目。

Blockquote 11

HTML blockquote 項目。

Body 12

HTML body 項目。

Br 13

HTML br 項目。

Button 14

HTML button 項目。

Caption 15

HTML caption 項目。

Center 16

HTML center 項目。

Cite 17

HTML cite 項目。

Code 18

HTML code 項目。

Col 19

HTML col 項目。

Colgroup 20

HTML colgroup 項目。

Dd 21

HTML dd 項目。

Del 22

HTML del 項目。

Dfn 23

HTML dfn 項目。

Dir 24

HTML dir 項目。

Div 25

HTML div 項目。

Dl 26

HTML dl 項目。

Dt 27

HTML dt 項目。

Em 28

HTML em 項目。

Embed 29

HTML embed 項目。

Fieldset 30

HTML fieldset 項目。

Font 31

HTML font 項目。

Form 32

HTML form 項目。

Frame 33

HTML frame 項目。

Frameset 34

HTML frameset 項目。

H1 35

HTML H1 項目。

H2 36

HTML H2 項目。

H3 37

HTML H3 項目。

H4 38

HTML H4 項目。

H5 39

HTML H5 項目。

H6 40

HTML H6 項目。

Head 41

HTML head 項目。

Hr 42

HTML hr 項目。

Html 43

HTML html 項目。

I 44

HTML i 項目。

Iframe 45

HTML iframe 項目。

Img 46

HTML img 項目。

Input 47

HTML input 項目。

Ins 48

HTML ins 項目。

Isindex 49

HTML isindex 項目。

Kbd 50

HTML kbd 項目。

Label 51

HTML label 項目。

Legend 52

HTML legend 項目。

Li 53

HTML li 項目。

54

HTML link 項目。

Map 55

HTML map 項目。

Marquee 56

HTML marquee 項目。

Menu 57

HTML menu 項目。

Meta 58

HTML meta 項目。

Nobr 59

HTML nobr 項目。

Noframes 60

HTML noframes 項目。

Noscript 61

HTML noscript 項目。

Object 62

HTML object 項目。

Ol 63

HTML ol 項目。

Option 64

HTML option 項目。

P 65

HTML p 項目。

Param 66

HTML param 項目。

Pre 67

HTML pre 項目。

Q 68

HTML q 項目。

Rt 69

DHTML rt 項目,它會指定 ruby 項目的文字。

Ruby 70

DHTML ruby 項目。

S 71

HTML s 項目。

Samp 72

HTML samp 項目。

Script 73

HTML script 項目。

Select 74

HTML select 項目。

Small 75

HTML small 項目。

Span 76

HTML span 項目。

Strike 77

HTML strike 項目。

Strong 78

HTML strong 項目。

Style 79

HTML style 項目。

Sub 80

HTML sub 項目。

Sup 81

HTML sup 項目。

Table 82

HTML table 項目。

Tbody 83

HTML tbody 項目。

Td 84

HTML td 項目。

Textarea 85

HTML textarea 項目。

Tfoot 86

HTML tfoot 項目。

Th 87

HTML th 項目。

Thead 88

HTML thead 項目。

Title 89

HTML title 項目。

Tr 90

HTML tr 項目。

Tt 91

HTML tt 項目。

U 92

HTML u 項目。

Ul 93

HTML ul 項目。

Unknown 0

無法辨認傳遞為 HTML 標記的字串。

Var 94

HTML var 項目。

Wbr 95

HTML wbr 項目。

Xml 96

HTML xml 項目。

範例

下列範例示範如何使用 HtmlTextWriterTag 列舉。 欄位 Img 會在轉譯 HtmlTextWriter 具名 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 要求。

適用於

另請參閱