IndentedTextWriter Construtores

Definição

Inicializa uma nova instância da IndentedTextWriter classe usando o escritor de texto especificado e a string de tabulação predefinida.

Sobrecargas

Name Description
IndentedTextWriter(TextWriter)

Inicializa uma nova instância da IndentedTextWriter classe usando o escritor de texto especificado e a string de tabulação predefinida.

IndentedTextWriter(TextWriter, String)

Inicializa uma nova instância da IndentedTextWriter classe usando o escritor de texto especificado e a string de tabulação.

IndentedTextWriter(TextWriter)

Origem:
IndentedTextWriter.cs
Origem:
IndentedTextWriter.cs
Origem:
IndentedTextWriter.cs
Origem:
IndentedTextWriter.cs
Origem:
IndentedTextWriter.cs

Inicializa uma nova instância da IndentedTextWriter classe usando o escritor de texto especificado e a string de tabulação predefinida.

public:
 IndentedTextWriter(System::IO::TextWriter ^ writer);
public IndentedTextWriter(System.IO.TextWriter writer);
new System.CodeDom.Compiler.IndentedTextWriter : System.IO.TextWriter -> System.CodeDom.Compiler.IndentedTextWriter
Public Sub New (writer As TextWriter)

Parâmetros

writer
TextWriter

A TextWriter usar para saída.

Ver também

Aplica-se a

IndentedTextWriter(TextWriter, String)

Origem:
IndentedTextWriter.cs
Origem:
IndentedTextWriter.cs
Origem:
IndentedTextWriter.cs
Origem:
IndentedTextWriter.cs
Origem:
IndentedTextWriter.cs

Inicializa uma nova instância da IndentedTextWriter classe usando o escritor de texto especificado e a string de tabulação.

public:
 IndentedTextWriter(System::IO::TextWriter ^ writer, System::String ^ tabString);
public IndentedTextWriter(System.IO.TextWriter writer, string tabString);
new System.CodeDom.Compiler.IndentedTextWriter : System.IO.TextWriter * string -> System.CodeDom.Compiler.IndentedTextWriter
Public Sub New (writer As TextWriter, tabString As String)

Parâmetros

writer
TextWriter

A TextWriter usar para saída.

tabString
String

A sequência de tabulação para usar na indentação.

Exemplos

O exemplo de código seguinte demonstra a criação de um IndentedTextWriter usando uma sequência de tabulação especificada.

// Creates a TextWriter to use as the base output writer.
System.IO.StringWriter baseTextWriter = new System.IO.StringWriter();

// Create an IndentedTextWriter and set the tab string to use
// as the indentation string for each indentation level.
System.CodeDom.Compiler.IndentedTextWriter indentWriter = new IndentedTextWriter(baseTextWriter, "    ");
  ' Create a TextWriter to use as the base output writer.
  Dim baseTextWriter As New System.IO.StringWriter

  ' Create an IndentedTextWriter and set the tab string to use 
  ' as the indentation string for each indentation level.
  Dim indentWriter = New IndentedTextWriter(baseTextWriter, "    ")

Ver também

Aplica-se a