HtmlTextWriter.TagLeftChar 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表標記標籤的開頭角括號(<)。
public: char TagLeftChar;
public const char TagLeftChar;
val mutable TagLeftChar : char
Public Const TagLeftChar As Char
欄位值
範例
以下程式碼範例將以元素名稱為 Element 的 <table> 開頭標籤首字母來呈現。 程式碼範例使用 Write 了以 TagLeftChar 欄位作為參數的方法。
此程式碼範例呈現以下標記:
<table
// Create the opening tag of a table element
// with styles by using the HtmlTextWriter class.
writer.Write(HtmlTextWriter.TagLeftChar);
writer.Write("table");
' Create the opening tag of a table element
' with styles by using the HtmlTextWriter class.
writer.Write(HtmlTextWriter.TagLeftChar)
writer.Write("table")
備註
TagLeftChar該欄位被 、 RenderBeginTag、 WriteBeginTag及 WriteFullBeginTag 方法在撰寫標記標籤時使用WriteEndTag。