HtmlTextWriter.TagLeftChar HtmlTextWriter.TagLeftChar HtmlTextWriter.TagLeftChar HtmlTextWriter.TagLeftChar Field

定義

表示標記的開頭角括弧 (<)。Represents the opening angle bracket (<) of a markup tag.

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

欄位值

範例

下列程式碼範例會將專案開頭標記<table>的第一個字元,轉譯為元素名稱。The following code example renders the first character of the opening tag of a <table> element with the element name. 此程式碼範例會Write使用方法TagLeftChar搭配欄位做為參數。The code example uses the Write method with the TagLeftChar field as a parameter.

這個程式碼範例會呈現下列標記:This code example renders the following markup:

<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")

備註

RenderBeginTag WriteBeginTag WriteFullBeginTag寫入標記標記時,、、和WriteEndTag方法會使用欄位。TagLeftCharThe TagLeftChar field is used by the RenderBeginTag, WriteBeginTag, WriteFullBeginTag, and WriteEndTag methods when writing markup tags.

適用於

另請參閱