HtmlTextWriter.EndTagLeftChars 欄位
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示標記項目結尾標記的左角括弧和斜線符號 (</)。
public: System::String ^ EndTagLeftChars;
C#
public const string EndTagLeftChars;
val mutable EndTagLeftChars : string
Public Const EndTagLeftChars As String
下列程式碼範例示範如何使用 和 TagRightChar 欄位做為 方法呼叫 Write 中的參數值,來轉譯標記專案的 EndTagLeftChars 結束記號 <table>
。
此程式碼範例會轉譯下列標記:
</table>
C#
// 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 欄位來建構標記專案結束標記。
產品 | 版本 |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |