TraceListener.IndentSize Property


Gets or sets the number of spaces in an indent.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

public int IndentSize { get; set; }

Property Value

Type: System.Int32

The number of spaces in an indent. The default is four spaces.

Exception Condition

Set operation failed because the value is less than zero.

The property is stored on per-thread/per-request basis.

.NET Framework
Available since 1.1
Return to top