TraceListener.IndentSize Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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