HtmlTextWriter.EndTagLeftChars 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示标记元素的右尖括号和斜杠标记(</)。
public: System::String ^ EndTagLeftChars;
public const string EndTagLeftChars;
val mutable EndTagLeftChars : string
Public Const EndTagLeftChars As String
字段值
示例
下面的代码示例演示如何通过使用<table>标记元素的EndTagLeftChars结束标记和TagRightChar字段作为对方法的调用Write中的参数值来呈现标记元素。
此代码示例呈现以下标记:
</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()
注解
该 EndTagLeftChars 字段由 RenderBeginTag 方法用来构造标记元素结束标记。