System.Diagnostics.Debug.IndentSize Property

Gets or sets the number of spaces in an indent.

Syntax

public static int IndentSize { get; set; }

See Also

Value

The indent size.

Remarks

A System.Diagnostics.TextWriterTraceListener interprets this number as spaces. An System.Diagnostics.EventLogTraceListener ignores this value.

To set the Debug.AutoFlush and Debug.IndentSize for System.Diagnostics.Debug, you can also edit the configuration file corresponding to the name of your application. The configuration file should be formatted as shown in the following example.

Example

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

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0