XhtmlTextWriter.ElementSpecificAttributes 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得包含項目專用屬性的 Hashtable 物件。
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
屬性值
包含項目專用屬性的 Hashtable 物件。
備註
AddRecognizedAttribute使用 方法可將辨識的屬性新增至 XHTML 專案。 若要移除 XHTML 元素上的通用屬性,請使用 RemoveRecognizedAttribute 方法。
建立 類別的新實例 XhtmlTextWriter 時, Hashtable 元素特定屬性的物件會填入下表所示的屬性。
| 項目 | 屬性 |
|---|---|
<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 |
如需所呈現之元素和樣式的詳細資訊,請參閱 World Wide Web Consortium (W3C) 網站的XHTML 模組化規格。