This documentation is archived and is not being maintained.

TraceListener.WriteIndent Method

Writes the indent to the listener you create when you implement this class, and resets the NeedIndent property to false.

[Visual Basic]
Protected Overridable Sub WriteIndent()
protected virtual void WriteIndent();
protected: virtual void WriteIndent();
protected function WriteIndent();


Writes the indent and resets NeedIndent to false. Call this method if NeedIndent is true, when you are overloading Write and WriteLine. By default, this method uses blank spaces for indentation.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

TraceListener Class | TraceListener Members | System.Diagnostics Namespace | TraceListener | DefaultTraceListener | EventLogTraceListener | TextWriterTraceListener | Debug | Trace