HtmlTextWriter.EndTagLeftChars 欄位

定義

表示標記項目結尾標記的左角括弧和斜線符號 (</)。

public: System::String ^ EndTagLeftChars;
public const string EndTagLeftChars;
val mutable EndTagLeftChars : string
Public Const EndTagLeftChars As String 

欄位值

範例

下列程式碼範例示範如何使用 和 TagRightChar 欄位做為 方法呼叫 Write 中的參數值,來轉譯標記專案的 EndTagLeftChars 結束記號 <table>

此程式碼範例會轉譯下列標記:

</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 欄位來建構標記專案結束標記。

適用於

另請參閱