IndentedTextWriter Constructor (TextWriter^, String^)
.NET Framework (current version)
Initializes a new instance of the IndentedTextWriter class using the specified text writer and tab string.
Assembly: System (in System.dll)
Parameters
- writer
-
Type:
System.IO::TextWriter^
The TextWriter to use for output.
- tabString
-
Type:
System::String^
The tab string to use for indentation.
The following code example demonstrates creating an IndentedTextWriter using a specified tab string.
// 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," " );
SecurityAction::LinkDemand
for full trust for the immediate caller. This member cannot be used by partially trusted code.
.NET Framework
Available since 1.1
Available since 1.1
Show: