HtmlTextWriter.EndTagLeftChars 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示标记元素结束标记的左尖括号和斜线 (</)。
public: System::String ^ EndTagLeftChars;
public const string EndTagLeftChars;
val mutable EndTagLeftChars : string
Public Const EndTagLeftChars As String
字段值
示例
下面的代码示例演示如何通过在调用 方法时使用 和 TagRightChar 字段作为参数值来呈现标记元素的Write结束标记<table>
。EndTagLeftChars
此代码示例呈现以下标记:
</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 字段来构造标记元素结束标记。
适用于
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈