HtmlTextWriter.TagRightChar Campo

Definición

Representa el corchete angular de cierre (>) de una etiqueta de marcado.

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

Valor de campo

Ejemplos

En el ejemplo de código siguiente se muestra cómo representar la etiqueta de cierre de un <table> elemento realizando llamadas a sobrecargas del Write método . Para representar el carácter final de la etiqueta, el ejemplo de código usa el Write método con el TagRightChar campo como parámetro.

Este ejemplo de código representa el marcado siguiente:

</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()

Comentarios

Los TagRightChar métodos , WriteFullBeginTagy WriteEndTag usan el RenderBeginTagcampo al escribir etiquetas de marcado.

Se aplica a

Consulte también