Share via


HtmlTextWriterTag Enumeração

Definição

Especifica as marcas HTML que podem ser passadas para um fluxo de saída do objeto HtmlTextWriter ou Html32TextWriter.

public enum class HtmlTextWriterTag
public enum HtmlTextWriterTag
type HtmlTextWriterTag = 
Public Enum HtmlTextWriterTag
Herança
HtmlTextWriterTag

Campos

A 1

O elemento HTML a.

Acronym 2

O elemento HTML acronym.

Address 3

O elemento HTML address.

Area 4

O elemento HTML area.

B 5

O elemento HTML b.

Base 6

O elemento HTML base.

Basefont 7

O elemento HTML basefont.

Bdo 8

O elemento HTML bdo.

Bgsound 9

O elemento HTML bgsound.

Big 10

O elemento HTML big.

Blockquote 11

O elemento HTML blockquote.

Body 12

O elemento HTML body.

Br 13

O elemento HTML br.

Button 14

O elemento HTML button.

Caption 15

O elemento HTML caption.

Center 16

O elemento HTML center.

Cite 17

O elemento HTML cite.

Code 18

O elemento HTML code.

Col 19

O elemento HTML col.

Colgroup 20

O elemento HTML colgroup.

Dd 21

O elemento HTML dd.

Del 22

O elemento HTML del.

Dfn 23

O elemento HTML dfn.

Dir 24

O elemento HTML dir.

Div 25

O elemento HTML div.

Dl 26

O elemento HTML dl.

Dt 27

O elemento HTML dt.

Em 28

O elemento HTML em.

Embed 29

O elemento HTML embed.

Fieldset 30

O elemento HTML fieldset.

Font 31

O elemento HTML font.

Form 32

O elemento HTML form.

Frame 33

O elemento HTML frame.

Frameset 34

O elemento HTML frameset.

H1 35

O elemento HTML H1.

H2 36

O elemento HTML H2.

H3 37

O elemento HTML H3.

H4 38

O elemento HTML H4.

H5 39

O elemento HTML H5.

H6 40

O elemento HTML H6.

Head 41

O elemento HTML head.

Hr 42

O elemento HTML hr.

Html 43

O elemento HTML html.

I 44

O elemento HTML i.

Iframe 45

O elemento HTML iframe.

Img 46

O elemento HTML img.

Input 47

O elemento HTML input.

Ins 48

O elemento HTML ins.

Isindex 49

O elemento HTML isindex.

Kbd 50

O elemento HTML kbd.

Label 51

O elemento HTML label.

Legend 52

O elemento HTML legend.

Li 53

O elemento HTML li.

54

O elemento HTML link.

Map 55

O elemento HTML map.

Marquee 56

O elemento HTML marquee.

Menu 57

O elemento HTML menu.

Meta 58

O elemento HTML meta.

Nobr 59

O elemento HTML nobr.

Noframes 60

O elemento HTML noframes.

Noscript 61

O elemento HTML noscript.

Object 62

O elemento HTML object.

Ol 63

O elemento HTML ol.

Option 64

O elemento HTML option.

P 65

O elemento HTML p.

Param 66

O elemento HTML param.

Pre 67

O elemento HTML pre.

Q 68

O elemento HTML q.

Rt 69

O elemento DHTML rt, que especifica o texto para o elemento ruby.

Ruby 70

O elemento DHTML ruby.

S 71

O elemento HTML s.

Samp 72

O elemento HTML samp.

Script 73

O elemento HTML script.

Select 74

O elemento HTML select.

Small 75

O elemento HTML small.

Span 76

O elemento HTML span.

Strike 77

O elemento HTML strike.

Strong 78

O elemento HTML strong.

Style 79

O elemento HTML style.

Sub 80

O elemento HTML sub.

Sup 81

O elemento HTML sup.

Table 82

O elemento HTML table.

Tbody 83

O elemento HTML tbody.

Td 84

O elemento HTML td.

Textarea 85

O elemento HTML textarea.

Tfoot 86

O elemento HTML tfoot.

Th 87

O elemento HTML th.

Thead 88

O elemento HTML thead.

Title 89

O elemento HTML title.

Tr 90

O elemento HTML tr.

Tt 91

O elemento HTML tt.

U 92

O elemento HTML u.

Ul 93

O elemento HTML ul.

Unknown 0

A cadeia de caracteres passada como uma marca HTML não é reconhecida.

Var 94

O elemento HTML var.

Wbr 95

O elemento HTML wbr.

Xml 96

O elemento HTML xml.

Exemplos

O exemplo a seguir demonstra o uso da HtmlTextWriterTag enumeração. O Img campo é usado durante a renderização de um HtmlTextWriter nome 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()

Comentários

A HtmlTextWriterTag enumeração permite que o fluxo de saída escreva a marcação HTML, juntamente com controles de servidor HTML, em resposta a uma solicitação da Web.

Aplica-se a

Confira também