Debug.IndentSize 屬性

定義

取得或設定縮排中的空格數。

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 應用程式,你也可以透過編輯對應應用程式名稱的設定檔,設定 AutoFlushIndentSize 屬性,分別對應 Debug。 設定檔格式應如以下範例所示。

<configuration>
  <system.diagnostics>
    <trace autoflush="true" indentsize="7" />
  </system.diagnostics>
</configuration>

適用於

另請參閱