HtmlTextWriter.DoubleQuoteChar HtmlTextWriter.DoubleQuoteChar HtmlTextWriter.DoubleQuoteChar HtmlTextWriter.DoubleQuoteChar Field

定義

表示引號 (") 字元。Represents the quotation mark (") character.

public: char DoubleQuoteChar;
public const char DoubleQuoteChar;
val mutable DoubleQuoteChar : char
Public Const DoubleQuoteChar As Char 

欄位值

範例

下列程式碼範例示範如何呈現border <table>元素的屬性。The following code example shows how to render a border attribute for a <table> element. 程式碼會呼叫Write方法來呈現屬性和其值,並Write使用方法來EqualsDoubleQuoteString轉譯和DoubleQuoteChar欄位。The code calls the Write method to render the attribute and its value and uses the Write method to render the EqualsDoubleQuoteString and DoubleQuoteChar fields.

這個程式碼範例會呈現下列標記:This code example renders the following markup:

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)

備註

DoubleQuoteChar欄位是WriteAttribute由方法用來關閉屬性。The DoubleQuoteChar field is used by the WriteAttribute method to close an attribute.

適用於

另請參閱