System.Xml.XmlWriterSettings.Indent Property

Gets or sets a value indicating whether to indent elements.

Syntax

public bool Indent { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

This property only applies to System.Xml.XmlWriter instances that output text content; otherwise, this setting is ignored.

The elements are indented as long as the element does not contain mixed content. Once the XmlWriter.WriteString(string) or XmlWriter.WriteWhitespace(string) method is called to write out a mixed element content, the System.Xml.XmlWriter stops indenting. The indenting resumes once the mixed content element is closed.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0