Trace.IndentSize Propiedad

Definición

Obtiene o establece el número de espacios en una sangría.

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

Valor de propiedad

Número de espacios en una sangría. El valor predeterminado es cuatro.

Comentarios

Un TextWriterTraceListener interpreta este número como espacios. Un EventLogTraceListener omite este valor.

Esta propiedad se almacena por subproceso o por solicitud.

Para establecer el AutoFlush y IndentSize para Trace en aplicaciones de .NET Framework, también puede editar el archivo de configuración que corresponde al nombre de la aplicación. El archivo de configuración debe tener formato similar al ejemplo siguiente:

<configuration>
  <system.diagnostics>
    <trace autoflush="false" indentsize="3" />
  </system.diagnostics>
</configuration>

Se aplica a

Consulte también