HtmlTextWriter.EndTagLeftChars Campo

Definición

Representa el corchete angular de apertura y la barra diagonal (</) de la etiqueta de cierre de un elemento de marcado.

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

Valor de campo

Ejemplos

En el ejemplo de código siguiente se muestra cómo representar la etiqueta de cierre de un <table> elemento de marcado mediante y EndTagLeftChars los TagRightChar campos como valores de parámetro en llamadas al Write método .

En este ejemplo de código se 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

El EndTagLeftChars método usa el RenderBeginTag campo para construir etiquetas finales del elemento de marcado.

Se aplica a

Consulte también