Skip to content

EditableTextDocument.CreatePreservingLineEndings method

A document that keeps each line’s own terminator, so a file read into it round-trips unchanged. Every other document rewrites terminators to a line feed.

public static EditableTextDocument CreatePreservingLineEndings(string? text = null)