HtmlTextWriter.DoubleQuoteChar Champ

Définition

Représente le caractère de guillemet (").

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

Valeur de champ

Exemples

L’exemple de code suivant montre comment restituer un border attribut pour un <table> élément. Le code appelle la Write méthode pour afficher l’attribut et sa valeur, et utilise la Write méthode pour restituer les EqualsDoubleQuoteString champs et DoubleQuoteChar .

Cet exemple de code affiche le balisage suivant :

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)

Remarques

Le DoubleQuoteChar champ est utilisé par la WriteAttribute méthode pour fermer un attribut.

S’applique à

Voir aussi