XhtmlTextWriter.ElementSpecificAttributes Proprietà
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Ottiene un oggetto Hashtable contenente gli attributi specifici degli elementi.
protected:
property System::Collections::Hashtable ^ ElementSpecificAttributes { System::Collections::Hashtable ^ get(); };
protected System.Collections.Hashtable ElementSpecificAttributes { get; }
member this.ElementSpecificAttributes : System.Collections.Hashtable
Protected ReadOnly Property ElementSpecificAttributes As Hashtable
Valore della proprietà
Oggetto Hashtable contenente gli attributi specifici degli elementi.
Commenti
Utilizzare il AddRecognizedAttribute metodo per aggiungere attributi riconosciuti a un elemento XHTML. Per rimuovere gli attributi comuni in un elemento XHTML, usare il RemoveRecognizedAttribute metodo .
Quando viene creata una nuova istanza della XhtmlTextWriter classe, l'oggetto Hashtable di attributi specifici dell'elemento viene popolato con gli attributi illustrati nella tabella seguente.
| Elemento | Attributi |
|---|---|
<a> |
accesskey, href, charset, hreflang, rel, type, rev, title, tabindex |
<base> |
href |
<blockquote> |
cite |
<br> |
id, class, title |
<form> |
action, method, enctype |
<head> |
xml:lang |
<html> |
version, xml:lang, xmlns |
<img> |
src, alt, width, longdesc, height |
<input> |
size, accesskey, title, name, type, disabled, value, src, checked, maxlength, tabindex |
<label> |
accesskey, for |
<li> |
value |
<link> |
hreflang, rev, type, charset, rel, href, media |
<meta> |
content, name, xml:lang, http-equiv, scheme |
<object> |
codebase, classid, data, standby, name, type, height, archive, declare, width, tabindex, codetype |
<ol> |
start |
<optgroup> |
label, disabled |
<option> |
selected, value |
<param> |
id, name, valuetype, value, type |
<pre> |
xml:space |
<q> |
cite |
<select> |
name, tabindex, disabled, multiple, size |
<style> |
xml:lang, xml:space, type, title, media |
<table> |
width, summary |
<textarea> |
name, cols, accesskey, tabindex, rows |
<td> |
headers, align, rowspan, colspan, axis, scope, abbr, valign |
<th> |
headers, align, rowspan, colspan, axis, scope, abbr, valign |
<title> |
xml:lang |
<tr> |
align, valign |
Per altre informazioni sugli elementi e sugli stili di cui viene eseguito il rendering, vedere la specifica di modularizzazione XHTML nel sito Web World Wide Web Consortium (W3C).