HtmlTextWriter.TagLeftChar Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the opening angle bracket (<) of a markup tag.
public: char TagLeftChar;
public const char TagLeftChar;
val mutable TagLeftChar : char
Public Const TagLeftChar As Char
Field Value
Examples
The following code example renders the first character of the opening tag of a <table>
element with the element name. The code example uses the Write method with the TagLeftChar field as a parameter.
This code example renders the following markup:
<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")
Remarks
The TagLeftChar field is used by the RenderBeginTag, WriteBeginTag, WriteFullBeginTag, and WriteEndTag methods when writing markup tags.