IndentedTextWriter Construtores
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Inicializa uma nova instância da IndentedTextWriter classe usando o gravador de texto especificado e a cadeia de caracteres de tabulação padrão.
Sobrecargas
| Nome | Description |
|---|---|
| IndentedTextWriter(TextWriter) |
Inicializa uma nova instância da IndentedTextWriter classe usando o gravador de texto especificado e a cadeia de caracteres de tabulação padrão. |
| IndentedTextWriter(TextWriter, String) |
Inicializa uma nova instância da IndentedTextWriter classe usando o gravador de texto e a cadeia de caracteres de tabulação especificados. |
IndentedTextWriter(TextWriter)
Inicializa uma nova instância da IndentedTextWriter classe usando o gravador de texto especificado e a cadeia de caracteres de tabulação padrão.
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
O TextWriter a ser usado para saída.
Confira também
Aplica-se a
IndentedTextWriter(TextWriter, String)
Inicializa uma nova instância da IndentedTextWriter classe usando o gravador de texto e a cadeia de caracteres de tabulação especificados.
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
O TextWriter a ser usado para saída.
- tabString
- String
A cadeia de caracteres de tabulação a ser usada para recuo.
Exemplos
O exemplo de código a seguir demonstra a criação de uma cadeia de caracteres de tabulação IndentedTextWriter 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, " ")