HtmlTextWriter.TagRightChar Pole

Definicja

Reprezentuje nawias zamykający kąta (>) tagu znaczników.

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

Wartość pola

Przykłady

Poniższy przykład kodu pokazuje, jak renderować tag <table> zamykający elementu przez wykonywanie wywołań przeciążeń Write metody. Aby renderować końcowy znak tagu, przykładowy kod używa Write metody z TagRightChar polem jako parametru.

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

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

Uwagi

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

Dotyczy

Zobacz też