Debug.IndentSize プロパティ

定義

1 つのインデントに含まれるスペースの数を取得または設定します。

public:
 static property int IndentSize { int get(); void set(int value); };
public static int IndentSize { get; set; }
member this.IndentSize : int with get, set
Public Shared Property IndentSize As Integer

プロパティ値

Int32

インデントに含まれるスペースの数。 既定値は 4 です。

注釈

A TextWriterTraceListener は、この数値をスペースとして解釈します。 この EventLogTraceListener 値は無視されます。

.NET Frameworkアプリの場合は、アプリケーションの名前にAutoFlushIndentSize対応する構成ファイルを編集して、そのプロパティDebugを設定することもできます。 構成ファイルは、次の例に示すように書式設定する必要があります。

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

適用対象

こちらもご覧ください