HtmlTextWriterTag Enumerazione

Definizione

Specifica i tag HTML che possono essere passati al flusso di output di un oggetto HtmlTextWriter oppure Html32TextWriter.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
Ereditarietà
HtmlTextWriterTag

Campi

A 1

Elemento HTML a.The HTML a element.

Acronym 2

Elemento HTML acronym.The HTML acronym element.

Address 3

Elemento HTML address.The HTML address element.

Area 4

Elemento HTML area.The HTML area element.

B 5

Elemento HTML b.The HTML b element.

Base 6

Elemento HTML base.The HTML base element.

Basefont 7

Elemento HTML basefont.The HTML basefont element.

Bdo 8

Elemento HTML bdo.The HTML bdo element.

Bgsound 9

Elemento HTML bgsound.The HTML bgsound element.

Big 10

Elemento HTML big.The HTML big element.

Blockquote 11

Elemento HTML blockquote.The HTML blockquote element.

Body 12

Elemento HTML body.The HTML body element.

Br 13

Elemento HTML br.The HTML br element.

Button 14

Elemento HTML button.The HTML button element.

Caption 15

Elemento HTML caption.The HTML caption element.

Center 16

Elemento HTML center.The HTML center element.

Cite 17

Elemento HTML cite.The HTML cite element.

Code 18

Elemento HTML code.The HTML code element.

Col 19

Elemento HTML col.The HTML col element.

Colgroup 20

Elemento HTML colgroup.The HTML colgroup element.

Dd 21

Elemento HTML dd.The HTML dd element.

Del 22

Elemento HTML del.The HTML del element.

Dfn 23

Elemento HTML dfn.The HTML dfn element.

Dir 24

Elemento HTML dir.The HTML dir element.

Div 25

Elemento HTML div.The HTML div element.

Dl 26

Elemento HTML dl.The HTML dl element.

Dt 27

Elemento HTML dt.The HTML dt element.

Em 28

Elemento HTML em.The HTML em element.

Embed 29

Elemento HTML embed.The HTML embed element.

Fieldset 30

Elemento HTML fieldset.The HTML fieldset element.

Font 31

Elemento HTML font.The HTML font element.

Form 32

Elemento HTML form.The HTML form element.

Frame 33

Elemento HTML frame.The HTML frame element.

Frameset 34

Elemento HTML frameset.The HTML frameset element.

H1 35

Elemento HTML H1.The HTML H1 element.

H2 36

Elemento HTML H2.The HTML H2 element.

H3 37

Elemento HTML H3.The HTML H3 element.

H4 38

Elemento HTML H4.The HTML H4 element.

H5 39

Elemento HTML H5.The HTML H5 element.

H6 40

Elemento HTML H6.The HTML H6 element.

Head 41

Elemento HTML head.The HTML head element.

Hr 42

Elemento HTML hr.The HTML hr element.

Html 43

Elemento HTML html.The HTML html element.

I 44

Elemento HTML i.The HTML i element.

Iframe 45

Elemento HTML iframe.The HTML iframe element.

Img 46

Elemento HTML img.The HTML img element.

Input 47

Elemento HTML input.The HTML input element.

Ins 48

Elemento HTML ins.The HTML ins element.

Isindex 49

Elemento HTML isindex.The HTML isindex element.

Kbd 50

Elemento HTML kbd.The HTML kbd element.

Label 51

Elemento HTML label.The HTML label element.

Legend 52

Elemento HTML legend.The HTML legend element.

Li 53

Elemento HTML li.The HTML li element.

54

Elemento HTML link.The HTML link element.

Map 55

Elemento HTML map.The HTML map element.

Marquee 56

Elemento HTML marquee.The HTML marquee element.

Menu 57

Elemento HTML menu.The HTML menu element.

Meta 58

Elemento HTML meta.The HTML meta element.

Nobr 59

Elemento HTML nobr.The HTML nobr element.

Noframes 60

Elemento HTML noframes.The HTML noframes element.

Noscript 61

Elemento HTML noscript.The HTML noscript element.

Object 62

Elemento HTML object.The HTML object element.

Ol 63

Elemento HTML ol.The HTML ol element.

Option 64

Elemento HTML option.The HTML option element.

P 65

Elemento HTML p.The HTML p element.

Param 66

Elemento HTML param.The HTML param element.

Pre 67

Elemento HTML pre.The HTML pre element.

Q 68

Elemento HTML q.The HTML q element.

Rt 69

Elemento DHTML rt, che specifica il testo dell'elemento ruby.The DHTML rt element, which specifies text for the ruby element.

Ruby 70

Elemento DHTML ruby.The DHTML ruby element.

S 71

Elemento HTML s.The HTML s element.

Samp 72

Elemento HTML samp.The HTML samp element.

Script 73

Elemento HTML script.The HTML script element.

Select 74

Elemento HTML select.The HTML select element.

Small 75

Elemento HTML small.The HTML small element.

Span 76

Elemento HTML span.The HTML span element.

Strike 77

Elemento HTML strike.The HTML strike element.

Strong 78

Elemento HTML strong.The HTML strong element.

Style 79

Elemento HTML style.The HTML style element.

Sub 80

Elemento HTML sub.The HTML sub element.

Sup 81

Elemento HTML sup.The HTML sup element.

Table 82

Elemento HTML table.The HTML table element.

Tbody 83

Elemento HTML tbody.The HTML tbody element.

Td 84

Elemento HTML td.The HTML td element.

Textarea 85

Elemento HTML textarea.The HTML textarea element.

Tfoot 86

Elemento HTML tfoot.The HTML tfoot element.

Th 87

Elemento HTML th.The HTML th element.

Thead 88

Elemento HTML thead.The HTML thead element.

Title 89

Elemento HTML title.The HTML title element.

Tr 90

Elemento HTML tr.The HTML tr element.

Tt 91

Elemento HTML tt.The HTML tt element.

U 92

Elemento HTML u.The HTML u element.

Ul 93

Elemento HTML ul.The HTML ul element.

Unknown 0

La stringa passata come tag HTML non è riconosciuta.The string passed as an HTML tag is not recognized.

Var 94

Elemento HTML var.The HTML var element.

Wbr 95

Elemento HTML wbr.The HTML wbr element.

Xml 96

Elemento HTML xml.The HTML xml element.

Esempi

Nell'esempio seguente viene illustrato l'utilizzo dell' HtmlTextWriterTag enumerazione.The following example demonstrates the use of the HtmlTextWriterTag enumeration. Il Img campo viene utilizzato durante il rendering di HtmlTextWriter un writeroggetto denominato.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()

Commenti

L' HtmlTextWriterTag enumerazione consente al flusso di output di scrivere markup HTML, insieme ai controlli server HTML, in risposta a una richiesta Web.The HtmlTextWriterTag enumeration allows the output stream to write HTML markup, along with HTML server controls, in response to a web request.

Si applica a

Vedi anche