XhtmlTextWriter.ElementSpecificAttributes プロパティ

定義

要素固有属性を格納している 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

要素固有属性を格納している Hashtable オブジェクト。

注釈

このメソッドを AddRecognizedAttribute 使用して、認識された属性を XHTML 要素に追加します。 XHTML 要素の一般的な属性を削除するには、このメソッドを使用します RemoveRecognizedAttribute

クラスの新しいインスタンスが XhtmlTextWriter 作成されると、 Hashtable 要素固有の属性のオブジェクトに、次の表に示す属性が設定されます。

要素 属性
<a> accesskey, href, charset, hreflang, rel, type, rev, title, tabindex
<base> href
<blockquote> cite
<br> idclasstitle
<form> actionmethodenctype
<head> xml:lang
<html> versionxml:langxmlns
<img> srcaltwidthlongdescheight
<input> sizeaccesskeytitlenametypedisabledvaluesrccheckedmaxlengthtabindex
<label> accesskey, for
<li> value
<link> hreflangrevtypecharsetrelhrefmedia
<meta> contentnamexml:langhttp-equivscheme
<object> codebase, classid, data, standby, name, type, height, archive, declare, width, tabindex, codetype
<ol> start
<optgroup> label, disabled
<option> selected, value
<param> idnamevaluetypevaluetype
<pre> xml:space
<q> cite
<select> nametabindexdisabledmultiplesize
<style> xml:langxml:spacetypetitlemedia
<table> width, summary
<textarea> namecolsaccesskeytabindexrows
<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) Web サイトの XHTML モジュール化仕様を参照してください。

適用対象

こちらもご覧ください