HtmlTextWriter.TagLeftChar Field

Definition

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.

Applies to

See also