HtmlTextWriter.DoubleQuoteChar Campo

Definição

Representa o carácter aspas (").

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

Valor de Campo

Exemplos

O seguinte exemplo de código mostra como renderizar um border atributo para um <table> elemento. O código chama o Write método para renderizar o atributo e o seu valor e usa o Write método para renderizar os EqualsDoubleQuoteString campos e.DoubleQuoteChar

Este exemplo de código gera a seguinte marcação:

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)

Observações

O DoubleQuoteChar campo é usado pelo WriteAttribute método para fechar um atributo.

Aplica-se a

Ver também