XmlWriterSettings.NewLineChars Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the character string to use for line breaks.
Assembly: System.Xml (in System.Xml.dll)
Property Value
Type: System.StringThe character string to use for line breaks. This can be set to any string value. However, to ensure valid XML, you should specify only valid white space characters, such as space characters, tabs, carriage returns, or line feeds. The default is \r\n (carriage return, new line).
| Exception | Condition |
|---|---|
| ArgumentNullException | The value assigned to the NewLineChars is Nothing. |
Show: