HtmlTextWriter.TagLeftChar 字段

定义

表示标记标记的左尖括号 (<)。

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

字段值

示例

下面的代码示例呈现元素名称为元素的开始标记的第一 <table> 个字符。 该代码示例使用 Write 将字段作为参数的方法 TagLeftChar

此代码示例呈现以下标记:

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

注解

编写TagLeftChar标记标记时,字段由RenderBeginTagWriteBeginTagWriteFullBeginTagWriteEndTag和方法使用。

适用于

另请参阅