IndentedTextWriter Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Inicjuje nowe wystąpienie IndentedTextWriter klasy przy użyciu określonego składnika zapisywania tekstu i domyślnego ciągu tabulacji.
Przeciążenia
| Nazwa | Opis |
|---|---|
| IndentedTextWriter(TextWriter) |
Inicjuje nowe wystąpienie IndentedTextWriter klasy przy użyciu określonego składnika zapisywania tekstu i domyślnego ciągu tabulacji. |
| IndentedTextWriter(TextWriter, String) |
Inicjuje nowe wystąpienie IndentedTextWriter klasy przy użyciu określonego składnika zapisywania tekstu i ciągu tabulacji. |
IndentedTextWriter(TextWriter)
- Źródło:
- IndentedTextWriter.cs
- Źródło:
- IndentedTextWriter.cs
- Źródło:
- IndentedTextWriter.cs
- Źródło:
- IndentedTextWriter.cs
- Źródło:
- IndentedTextWriter.cs
Inicjuje nowe wystąpienie IndentedTextWriter klasy przy użyciu określonego składnika zapisywania tekstu i domyślnego ciągu tabulacji.
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)
Parametry
- writer
- TextWriter
Element TextWriter do użycia dla danych wyjściowych.
Zobacz też
Dotyczy
IndentedTextWriter(TextWriter, String)
- Źródło:
- IndentedTextWriter.cs
- Źródło:
- IndentedTextWriter.cs
- Źródło:
- IndentedTextWriter.cs
- Źródło:
- IndentedTextWriter.cs
- Źródło:
- IndentedTextWriter.cs
Inicjuje nowe wystąpienie IndentedTextWriter klasy przy użyciu określonego składnika zapisywania tekstu i ciągu tabulacji.
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)
Parametry
- writer
- TextWriter
Element TextWriter do użycia dla danych wyjściowych.
- tabString
- String
Ciąg tabulatora używany do wcięcia.
Przykłady
W poniższym przykładzie kodu pokazano tworzenie IndentedTextWriter obiektu przy użyciu określonego ciągu karty.
// 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, " ")