Debug.IndentSize 속성

정의

들여쓰기의 공백 수를 가져오거나 설정합니다.

public:
 static property int IndentSize { int get(); void set(int value); };
public static int IndentSize { get; set; }
static member IndentSize : int with get, set
Public Shared Property IndentSize As Integer

속성 값

들여쓰기의 공백 수입니다. 기본값은 4입니다.

설명

TextWriterTraceListener 이 숫자를 공백으로 해석합니다. 는 EventLogTraceListener 이 값을 무시합니다.

.NET Framework 앱의 경우 애플리케이션 이름에 AutoFlush 해당하는 구성 파일을 편집하여 및 IndentSize 속성을 Debug 설정할 수도 있습니다. 다음 예제와 같이 구성 파일의 형식을 지정해야 합니다.

<configuration>
  <system.diagnostics>
    <trace autoflush="true" indentsize="7" />
  </system.diagnostics>
</configuration>

적용 대상

추가 정보