Ler en inglés

Compartir por


HtmlTextWriter.TagLeftChar Campo

Definición

Representa el corchete angular de apertura (<) de una etiqueta de marcado.

C#
public const char TagLeftChar;

Valor de campo

Ejemplos

En el ejemplo de código siguiente se representa el primer carácter de la etiqueta de apertura de un <table> elemento con el nombre del elemento. En el ejemplo de código se usa el Write método con el TagLeftChar campo como parámetro.

En este ejemplo de código se representa el marcado siguiente:

<table

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

Comentarios

Los métodos , WriteBeginTagWriteFullBeginTag, y WriteEndTag usan el TagLeftCharRenderBeginTagcampo al escribir etiquetas de marcado.

Se aplica a

Produto Versións
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Consulte también