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 メソッドによって使用されます。

適用対象

こちらもご覧ください