HtmlTextWriterTag Enumerazione

Definizione

Specifica i tag HTML che possono essere passati al flusso di output di un oggetto HtmlTextWriter oppure Html32TextWriter.

public enum class HtmlTextWriterTag
public enum HtmlTextWriterTag
type HtmlTextWriterTag = 
Public Enum HtmlTextWriterTag
Ereditarietà
HtmlTextWriterTag

Campi

A 1

Elemento HTML a.

Acronym 2

Elemento HTML acronym.

Address 3

Elemento HTML address.

Area 4

Elemento HTML area.

B 5

Elemento HTML b.

Base 6

Elemento HTML base.

Basefont 7

Elemento HTML basefont.

Bdo 8

Elemento HTML bdo.

Bgsound 9

Elemento HTML bgsound.

Big 10

Elemento HTML big.

Blockquote 11

Elemento HTML blockquote.

Body 12

Elemento HTML body.

Br 13

Elemento HTML br.

Button 14

Elemento HTML button.

Caption 15

Elemento HTML caption.

Center 16

Elemento HTML center.

Cite 17

Elemento HTML cite.

Code 18

Elemento HTML code.

Col 19

Elemento HTML col.

Colgroup 20

Elemento HTML colgroup.

Dd 21

Elemento HTML dd.

Del 22

Elemento HTML del.

Dfn 23

Elemento HTML dfn.

Dir 24

Elemento HTML dir.

Div 25

Elemento HTML div.

Dl 26

Elemento HTML dl.

Dt 27

Elemento HTML dt.

Em 28

Elemento HTML em.

Embed 29

Elemento HTML embed.

Fieldset 30

Elemento HTML fieldset.

Font 31

Elemento HTML font.

Form 32

Elemento HTML form.

Frame 33

Elemento HTML frame.

Frameset 34

Elemento HTML frameset.

H1 35

Elemento HTML H1.

H2 36

Elemento HTML H2.

H3 37

Elemento HTML H3.

H4 38

Elemento HTML H4.

H5 39

Elemento HTML H5.

H6 40

Elemento HTML H6.

Head 41

Elemento HTML head.

Hr 42

Elemento HTML hr.

Html 43

Elemento HTML html.

I 44

Elemento HTML i.

Iframe 45

Elemento HTML iframe.

Img 46

Elemento HTML img.

Input 47

Elemento HTML input.

Ins 48

Elemento HTML ins.

Isindex 49

Elemento HTML isindex.

Kbd 50

Elemento HTML kbd.

Label 51

Elemento HTML label.

Legend 52

Elemento HTML legend.

Li 53

Elemento HTML li.

54

Elemento HTML link.

Map 55

Elemento HTML map.

Marquee 56

Elemento HTML marquee.

Menu 57

Elemento HTML menu.

Meta 58

Elemento HTML meta.

Nobr 59

Elemento HTML nobr.

Noframes 60

Elemento HTML noframes.

Noscript 61

Elemento HTML noscript.

Object 62

Elemento HTML object.

Ol 63

Elemento HTML ol.

Option 64

Elemento HTML option.

P 65

Elemento HTML p.

Param 66

Elemento HTML param.

Pre 67

Elemento HTML pre.

Q 68

Elemento HTML q.

Rt 69

Elemento DHTML rt, che specifica il testo dell'elemento ruby.

Ruby 70

Elemento DHTML ruby.

S 71

Elemento HTML s.

Samp 72

Elemento HTML samp.

Script 73

Elemento HTML script.

Select 74

Elemento HTML select.

Small 75

Elemento HTML small.

Span 76

Elemento HTML span.

Strike 77

Elemento HTML strike.

Strong 78

Elemento HTML strong.

Style 79

Elemento HTML style.

Sub 80

Elemento HTML sub.

Sup 81

Elemento HTML sup.

Table 82

Elemento HTML table.

Tbody 83

Elemento HTML tbody.

Td 84

Elemento HTML td.

Textarea 85

Elemento HTML textarea.

Tfoot 86

Elemento HTML tfoot.

Th 87

Elemento HTML th.

Thead 88

Elemento HTML thead.

Title 89

Elemento HTML title.

Tr 90

Elemento HTML tr.

Tt 91

Elemento HTML tt.

U 92

Elemento HTML u.

Ul 93

Elemento HTML ul.

Unknown 0

La stringa passata come tag HTML non è riconosciuta.

Var 94

Elemento HTML var.

Wbr 95

Elemento HTML wbr.

Xml 96

Elemento HTML xml.

Esempio

Nell'esempio seguente viene illustrato l'uso dell'enumerazione HtmlTextWriterTag . Il campo viene usato durante il Img rendering di un HtmlTextWriter oggetto denominato 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()

Commenti

L'enumerazione HtmlTextWriterTag consente al flusso di output di scrivere markup HTML, insieme ai controlli server HTML, in risposta a una richiesta Web.

Si applica a

Vedi anche