Windows Dev Center

Information
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.

NewLineHandling Enumeration

Specifies how to handle line breaks.

Namespace:  System.Xml
Assemblies:   System.Xml.ReaderWriter (in System.Xml.ReaderWriter.dll)
  System.Xml (in System.Xml.dll)

public enum NewLineHandling

Member nameDescription
Supported by the XNA FrameworkSupported by Portable Class LibraryEntitizeNew line characters are entitized. This setting preserves all characters when the output is read by a normalizing XmlReader.
Supported by the XNA FrameworkSupported by Portable Class LibraryNoneThe new line characters are unchanged. The output is the same as the input.
Supported by the XNA FrameworkSupported by Portable Class LibraryReplaceNew line characters are replaced to match the character specified in the NewLineChars property.

This enumeration is passed to the Create method to specify whether the XmlWriter object will normalize line breaks in the output.

See the NewLineHandling property to see a table detailing the behavior of each of the validation types.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft