Debug.IndentSize 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定縮排中的空格數。
public:
static property int IndentSize { int get(); void set(int value); };
public static int IndentSize { get; set; }
static member IndentSize : int with get, set
Public Shared Property IndentSize As Integer
屬性值
縮排中的空格數。 預設是四。
備註
A TextWriterTraceListener 將此數字解釋為空格。 安 EventLogTraceListener 忽略了這個數值。
對於 .NET Framework 應用程式,你也可以透過編輯對應應用程式名稱的設定檔,設定 AutoFlush 和 IndentSize 屬性,分別對應 Debug。 設定檔格式應如以下範例所示。
<configuration>
<system.diagnostics>
<trace autoflush="true" indentsize="7" />
</system.diagnostics>
</configuration>