HtmlTextWriter.TagLeftChar 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示标记标记的左尖括号 (<)。
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和方法使用。