HtmlTextWriter.TagLeftChar Pole

Definicja

Reprezentuje nawias kątowy otwierający (<) tagu znaczników.

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

Wartość pola

Przykłady

Poniższy przykład kodu renderuje pierwszy znak tagu otwierającego <table> elementu o nazwie elementu. W przykładzie kodu użyto Write metody z TagLeftChar polem jako parametrem.

Ten przykład kodu renderuje następujące znaczniki:

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

Uwagi

Pole TagLeftChar jest używane przez RenderBeginTagmetody , , WriteBeginTagWriteFullBeginTagi WriteEndTag podczas pisania tagów znaczników.

Dotyczy

Zobacz też