IDebug.IndentSize

Syntax

IndentSize: Integer;

Description

The IndentSize property determines the size of one indent. Step is set in spaces. The total indent is determined, using the formula IndentLevel*IndentSize. The default property value is four spaces.

Example

Sub Main;

Begin

Debug.IndentLevel := 3;

Debug.IndentSize := 2;

Debug.WriteLine("Current indent: " + Debug.IndentLevel.ToString);

Debug.WriteLine("Indent size: " + Debug.IndentSize.ToString + " space(s)");

Debug.Indent;

Debug.WriteLine("Current indent: " + Debug.IndentLevel.ToString);

Debug.Indent;

Debug.WriteLine("Current indent: " + Debug.IndentLevel.ToString);

Debug.Unindent;

Debug.WriteLine("One level back: " + Debug.IndentLevel.ToString);

Debug.Unindent;

Debug.WriteLine("One level back: " + Debug.IndentLevel.ToString);

End Sub Main;

After executing the example the data will be displayed as follows:

Module execution started

      Current indent: 3

      Indent size: 2 space(s)

        Current indent: 4

          Current indent: 5

        One level back: 4

      One level up: 3

Module execution finished

See also:

IDebug