IndentedTextWriter Konstruktory

Definicja

Inicjuje IndentedTextWriter nowe wystąpienie klasy przy użyciu określonego składnika zapisywania tekstu i domyślnego ciągu tabulatora.

Przeciążenia

IndentedTextWriter(TextWriter)

Inicjuje IndentedTextWriter nowe wystąpienie klasy przy użyciu określonego składnika zapisywania tekstu i domyślnego ciągu tabulatora.

IndentedTextWriter(TextWriter, String)

Inicjuje IndentedTextWriter nowe wystąpienie klasy przy użyciu określonego składnika zapisywania tekstu i ciągu tabulatora.

IndentedTextWriter(TextWriter)

Źródło:
IndentedTextWriter.cs
Źródło:
IndentedTextWriter.cs
Źródło:
IndentedTextWriter.cs

Inicjuje IndentedTextWriter nowe wystąpienie klasy przy użyciu określonego składnika zapisywania tekstu i domyślnego ciągu tabulatora.

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

Inicjuje IndentedTextWriter nowe wystąpienie klasy przy użyciu określonego składnika zapisywania tekstu i ciągu tabulatora.

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 karty, który ma być używany do wcięcia.

Przykłady

Poniższy przykład kodu przedstawia 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 = gcnew 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 = gcnew IndentedTextWriter( baseTextWriter,"    " );
// 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, "    ")

Zobacz też

Dotyczy