HtmlTextWriter.DefaultTabString 欄位

定義

表示單一定位字元。

public: System::String ^ DefaultTabString;
public const string DefaultTabString;
val mutable DefaultTabString : string
Public Const DefaultTabString As String 

欄位值

範例

下列程式碼範例示範如何建立建構函式,該建構函式會採用 TextWriter 物件做為參數,並將欄位當做參數引數傳遞 DefaultTabString 至第二個版本的建構函式。 從程式碼呼叫這個建構函式時, DefaultTabString 欄位會定義頁面或配接器所使用的標記寫入器實例縮排原則。

// Create a markup class constructor that uses the
// DefaultTabString property to establish indent settings
// for the writer.
public SimpleHtmlTextWriter(TextWriter writer)
    :
    this(writer, DefaultTabString)
{
}
' Create a markup class constructor that uses the
' DefaultTabString property to establish indent settings
' for the writer.
Public Sub New(writer As TextWriter)
    me.New(writer, DefaultTabString)
End Sub

備註

單一索引標籤是以 ASCII 9 字元表示。

適用於

另請參閱