HtmlTextWriter.TagLeftChar Champ

Définition

Représente le crochet d’ouverture (<) d’une balise.

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

Valeur de champ

Exemples

L’exemple de code suivant restitue le premier caractère de la balise d’ouverture d’un <table> élément avec le nom d’élément. L’exemple de code utilise la Write méthode avec le TagLeftChar champ comme paramètre.

Cet exemple de code affiche le balisage suivant :

<table

// Create the opening tag of a table element
// with styles by using the HtmlTextWriter class.
writer.Write(HtmlTextWriter.TagLeftChar);
writer.Write("table");
' Create the opening tag of a table element
' with styles by using the HtmlTextWriter class. 
writer.Write(HtmlTextWriter.TagLeftChar)
writer.Write("table")

Remarques

Le TagLeftChar champ est utilisé par les méthodes , WriteBeginTag, WriteFullBeginTaget WriteEndTag lors de l’écriture RenderBeginTagde balises de balisage.

S’applique à

Voir aussi