HtmlTextWriter.DoubleQuoteChar 字段

定义

表示引号 (") 字符。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使用方法来呈现EqualsDoubleQuoteStringDoubleQuoteChar字段。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.

适用于

另请参阅