XhtmlTextWriter.ElementSpecificAttributes Propiedad
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Obtiene un objeto Hashtable que contiene atributos específicos del elemento.
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
Valor de propiedad
Un objeto Hashtable que contiene atributos específicos del elemento.
Comentarios
Use el AddRecognizedAttribute método para agregar atributos reconocidos a un elemento XHTML. Para quitar atributos comunes en un elemento XHTML, use el RemoveRecognizedAttribute método .
Cuando se crea una nueva instancia de la XhtmlTextWriter clase, el Hashtable objeto de atributos específicos del elemento se rellena con los atributos que se muestran en la tabla siguiente.
| Elemento | Atributos |
|---|---|
<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 |
Para obtener más información sobre los elementos y estilos que se representan, vea la especificación de modularización XHTML en el sitio web de World Wide Web Consortium (W3C).