次の方法で共有


HtmlTextWriter.DoubleQuoteChar フィールド

引用符 (") を表します。

名前空間: System.Web.UI
アセンブリ: System.Web (system.web.dll 内)

構文

'宣言
Public Const DoubleQuoteChar As Char
'使用
Dim value As Char

value = HtmlTextWriter.DoubleQuoteChar
public const char DoubleQuoteChar
public:
literal wchar_t DoubleQuoteChar
public static final char DoubleQuoteChar
public const var DoubleQuoteChar : char
適用できません。

解説

DoubleQuoteChar フィールドは、属性を閉じるために、WriteAttribute メソッドで使用されます。

使用例

<table> 要素の border 属性を出力する方法を次のコード例に示します。このコードは、Write メソッドを呼び出して属性とその値を出力し、Write メソッドを使用して EqualsDoubleQuoteString フィールドと DoubleQuoteChar フィールドを出力します。

このコード例では、次のマークアップが出力されます。

border="1"

' Create a border attribute for the table,
' and set it to 1.
writer.Write("border")
writer.Write(HtmlTextWriter.EqualsDoubleQuoteString)
writer.Write("1")
writer.Write(HtmlTextWriter.DoubleQuoteChar)
// Create a border attribute for the table,
// and set it to 1.
writer.Write("border");
writer.Write(HtmlTextWriter.EqualsDoubleQuoteString);
writer.Write("1");
writer.Write(HtmlTextWriter.DoubleQuoteChar);

プラットフォーム

Windows 98,Windows Server 2000 SP4,Windows CE,Windows Millennium Edition,Windows Mobile for Pocket PC,Windows Mobile for Smartphone,Windows Server 2003,Windows XP Media Center Edition,Windows XP Professional x64 Edition,Windows XP SP2,Windows XP Starter Edition

Microsoft .NET Framework 3.0 は Windows Vista,Microsoft Windows XP SP2,および Windows Server 2003 SP1 でサポートされています。

バージョン情報

.NET Framework

サポート対象 : 3.0,2.0,1.1,1.0

参照

関連項目

HtmlTextWriter クラス
HtmlTextWriter メンバ
System.Web.UI 名前空間
TextWriter
Write
Dispose
WriteAttribute