HtmlTextWriter.EndTagLeftChars 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表標記元素結尾標籤的左角括號與斜線(</)。
public: System::String ^ EndTagLeftChars;
public const string EndTagLeftChars;
val mutable EndTagLeftChars : string
Public Const EndTagLeftChars As String
欄位值
範例
以下程式碼範例展示如何在呼叫<table>方法時,使用EndTagLeftCharsTagRightChar欄位作為參數值來渲染標記元素的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來構造標記元素的末尾標籤。