HtmlTextWriter.EndTagLeftChars 字段

定义

表示标记元素的右尖括号和斜杠标记(</)。

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 方法用来构造标记元素结束标记。

适用于

另请参阅