語言

HtmlTextWriter.TagLeftChar 欄位

定義

代表標記標籤的開頭角括號(<)。

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。

適用於

另請參閱