Skip to main content

TxtDocumentImporterOptions.NewlineType Property

Gets or sets a character sequence used to define a new line.

Namespace: DevExpress.XtraSpreadsheet.Import

Assembly: DevExpress.Spreadsheet.v24.1.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

[DefaultValue(NewlineType.AnyCrLf)]
public override NewlineType NewlineType { get; set; }

Property Value

Type Default Description
NewlineType AnyCrLf

A NewlineType enumeration member.

Available values:

Name Description
CrLf

CR+LF, ‘\r\n’, 0x0D0A ASCII character sequence.

Lf

LF, 0x0A ASCII character.

Cr

CR, ‘\r’, 0x0D ASCII character.

LfCr

LF+CR, 0x0A0D ASCII character sequence.

VerticalTab

Vertical Tab, 0x0B ASCII character.

FormFeed

FF, 0x0C ASCII character.

MsDos

CR+LF, ‘\r\n’, 0x0D0A ASCII character sequence.

Unix

LF, 0x0A ASCII character.

Auto

For import - the new line character sequence is determined automatically. For export - 0x0D0A ASCII character sequence.

AnyCrLf

For import - any of the 0x0A, 0x0D characters or their combinations. For export - 0x0D0A ASCII character sequence.

Property Paths

You can access this nested property as listed below:

Object Type Path to NewlineType
WorkbookImportOptions
.Txt .NewlineType
See Also