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::Indent Property
.NET Framework (current version)
Gets or sets the number of spaces to indent.
Assembly: System (in System.dll)
The following code example demonstrates setting the indentation level of an IndentedTextWriter. The indentation level is the number of tab strings to prefix each line with.
// 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," " );
.NET Framework
Available since 1.1
Available since 1.1
Show: