HtmlTextWriter.TagLeftChar Campo

Definición

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

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

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

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

Comentarios

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

Se aplica a

Consulte también