次の方法で共有


Debug.IndentSize プロパティ

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

名前空間: System.Diagnostics
アセンブリ: System (system.dll 内)

構文

'宣言
Public Shared Property IndentSize As Integer
'使用
Dim value As Integer

value = Debug.IndentSize

Debug.IndentSize = value
public static int IndentSize { get; set; }
public:
static property int IndentSize {
    int get ();
    void set (int value);
}
/** @property */
public static int get_IndentSize ()

/** @property */
public static void set_IndentSize (int value)
public static function get IndentSize () : int

public static function set IndentSize (value : int)

プロパティ値

インデントの空白の数。既定値は 4 です。

解説

TextWriterTraceListener は、この数値を空白数として解釈します。EventLogTraceListener は、この値を無視します。

DebugAutoFlushIndentSize を設定するために、アプリケーション名に対応する構成ファイルを編集することもできます。構成ファイルの書式は次の例のようになります。

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

プラットフォーム

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 2.0、1.1、1.0

.NET Compact Framework

サポート対象 : 2.0、1.0

参照

関連項目

Debug クラス
Debug メンバ
System.Diagnostics 名前空間
Debug.IndentLevel プロパティ
Debug クラス
Trace
BooleanSwitch クラス
TraceSwitch
TraceListener
ConsoleTraceListener クラス
DefaultTraceListener
ConditionalAttribute クラス