HtmlTextWriter.DoubleQuoteChar Pole

Definicja

Reprezentuje znak cudzysłowu (").

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

Wartość pola

Przykłady

W poniższym przykładzie kodu pokazano, jak renderować border atrybut elementu <table> . Kod wywołuje metodę Write renderowania atrybutu i jego wartości i używa Write metody do renderowania EqualsDoubleQuoteString pól i DoubleQuoteChar .

Ten przykład kodu renderuje następujące znaczniki:

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)

Uwagi

Pole DoubleQuoteChar jest używane przez metodę WriteAttribute do zamknięcia atrybutu.

Dotyczy

Zobacz też