HtmlTextWriter.TagLeftChar 欄位

定義

表示標記的開頭角括弧 (<)。

public: char TagLeftChar;
public const char TagLeftChar;
val mutable TagLeftChar : char
Public Const TagLeftChar As Char 

欄位值

範例

下列程式碼範例會以專案名稱呈現專案開頭標記的第一 <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 標記標記時,、 WriteFullBeginTagWriteEndTag 方法會使用 RenderBeginTagWriteBeginTag 欄位。

適用於

另請參閱