Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IndentedTextWriter Constructor (TextWriter^, String^)

 

Initializes a new instance of the IndentedTextWriter class using the specified text writer and tab string.

Namespace:   System.CodeDom.Compiler
Assembly:  System (in System.dll)

public:
IndentedTextWriter(
	TextWriter^ writer,
	String^ tabString
)

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
Return to top
Show:
© 2017 Microsoft