HtmlTextWriter.TagLeftChar Campo

Definição

Representa o colchete angular de abertura (<) de uma etiqueta de marcação.

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

Valor de Campo

Exemplos

O exemplo de código seguinte apresenta o primeiro carácter da etiqueta de abertura de um <table> elemento com o nome do elemento. O exemplo de código usa o Write método com o TagLeftChar campo como parâmetro.

Este exemplo de código gera a seguinte marcação:

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

Observações

O TagLeftChar campo é usado pelos RenderBeginTagmétodos , WriteBeginTag, WriteFullBeginTag, e WriteEndTag ao escrever etiquetas de marcação.

Aplica-se a

Ver também