This documentation is archived and is not being maintained.

XmlTextWriter.IndentChar Property

Gets or sets which character to use for indenting when Formatting is set to Formatting.Indented.

[Visual Basic]
Public Property IndentChar As Char
public char IndentChar {get; set;}
public: __property __wchar_t get_IndentChar();
public: __property void set_IndentChar(__wchar_t);
public function get IndentChar() : Char;
public function set IndentChar(Char);

Property Value

The character to use for indenting. The default is space.

Note   The XmlTextWriter allows you to set this property to any character. To ensure valid XML, you must specify a valid white space character, 0x9, 0x10, 0x13 or 0x20.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

XmlTextWriter Class | XmlTextWriter Members | System.Xml Namespace | Indentation | Formatting