HtmlTextWriter.EndTagLeftChars Campo

Definizione

Rappresenta la parentesi uncinata aperta e la barra (</) del tag di chiusura di un elemento di markup.

public: System::String ^ EndTagLeftChars;
public const string EndTagLeftChars;
val mutable EndTagLeftChars : string
Public Const EndTagLeftChars As String 

Valore del campo

Esempio

Nell'esempio di codice seguente viene illustrato come eseguire il rendering del tag di chiusura di un <table> elemento di markup usando EndTagLeftChars e i TagRightChar campi come valori dei parametri nelle chiamate al Write metodo .

In questo esempio di codice viene eseguito il rendering del markup seguente:

</table>

// Write the closing tag of a table element.
writer.Write(HtmlTextWriter.EndTagLeftChars);
writer.Write("table");
writer.Write(HtmlTextWriter.TagRightChar);
writer.WriteLine();
' Write the closing tag of a table element.
writer.Write(HtmlTextWriter.EndTagLeftChars)
writer.Write("table")
writer.Write(HtmlTextWriter.TagRightChar)
writer.WriteLine()

Commenti

Il EndTagLeftChars campo viene usato dal RenderBeginTag metodo per costruire tag finali dell'elemento di markup.

Si applica a

Vedi anche