ITraceListenerIndenter GlobalIndentLevel Property CleanCode C# Libraries v1.2.03 API
Gets or sets the global indent level.

Namespace: CleanCode.Diagnostics
Assembly: CleanCode (in CleanCode.dll) Version: (1.2.03)

int GlobalIndentLevel { get; set; }

Field Value

The global indent level.

Consumers of a TraceListener that implements this interface should use the GlobalIndentLevel property instead of the IndentLevel property when adjusting the indentation. This will let all such listeners honor the same indentation instead of being independent. According to MSDN documentation, "[the IndentLevel] property is stored on per-thread/per-request basis".
See Also