XhtmlTextWriter.ElementSpecificAttributes Egenskap

Definition

Hämtar ett Hashtable objekt som innehåller elementspecifika attribut.

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

Egenskapsvärde

Ett Hashtable objekt som innehåller elementspecifika attribut.

Kommentarer

AddRecognizedAttribute Använd metoden för att lägga till identifierade attribut i ett XHTML-element. Om du vill ta bort vanliga attribut för ett XHTML-element använder du RemoveRecognizedAttribute metoden.

När en ny instans av XhtmlTextWriter klassen skapas Hashtable fylls objektet för elementspecifika attribut med attributen som visas i följande tabell.

Element Attributes
<a> accesskey, href, charset, hreflang, rel, type, revtitletabindex
<base> href
<blockquote> cite
<br> id, , classtitle
<form> action, , methodenctype
<head> xml:lang
<html> version, , xml:langxmlns
<img> src, alt, width, , , longdescheight
<input> size, accesskey, title, name, type, disabled, , value, src, checked, , , maxlengthtabindex
<label> accesskey, for
<li> value
<link> hreflang, rev, type, charset, rel, , , hrefmedia
<meta> content, name, xml:lang, , , http-equivscheme
<object> codebase, classid, data, standby, name, type, height, archive, , declare, width, , , tabindexcodetype
<ol> start
<optgroup> label, disabled
<option> selected, value
<param> id, name, valuetype, , , valuetype
<pre> xml:space
<q> cite
<select> name, tabindex, disabled, , , multiplesize
<style> xml:lang, xml:space, type, , , titlemedia
<table> width, summary
<textarea> name, cols, accesskey, , , tabindexrows
<td> headers, align, rowspan, , colspan, axis, scope, , abbr, valign
<th> headers, align, rowspan, , colspan, axis, scope, , abbr, valign
<title> xml:lang
<tr> align, valign

Mer information om de element och format som återges finns i XHTML-modulariseringsspecifikationen på W3C-webbplatsen (World Wide Web Consortium).

Gäller för

Se även