Gets or sets how many indentation characters to write for each level in the hierarchy when XmlTextWriter.Formatting is set to Formatting.Indented.
A int specifying the number of XmlTextWriter.IndentChar characters to use for each level. The default is 2.
Type Reason ArgumentException The value to be set is less than zero.
Indentation is performed on the following members of System.Xml.XmlNodeType: DocumentType, Element, Comment, ProcessingInstruction, and CDATA. All other node types are not affected. The System.Xml.XmlTextWriter class does not indent the internal DTD subset.
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0