Skip to main content

CsvExportOptions.Separator Property

Specifies the character(s) used to separate text elements when exporting a document to a text-based file.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v22.2.Core.dll

NuGet Packages: DevExpress.Printing.Core, DevExpress.Win.Dashboard.Design

Declaration

public override string Separator { get; set; }

Property Value

Type Description
String

A String value, specifying the separator character(s).

Property Paths

You can access this nested property as listed below:

Library Object Type Path to Separator
Cross-Platform Class Library ExportOptions
.Csv.Separator
WPF Controls ExportOptionsContainer
.Csv.Separator

Remarks

This property is in effect only when the CsvExportOptions.UseCustomSeparator property is set to true.

  • When the UseCustomSeparator property is set to false, the Separator property is disabled in the Property Grid, which indicates its actual value (by adding the “Using System Separator“ note to it).

    csv-use-custom-separator-false

  • When the UseCustomSeparator property is set to true, the Separator property’s value becomes empty and editable and the new custom value becomes serializable.

    csv-use-custom-separator-true

Use the CsvExportOptions.GetActualSeparator property to find out which separator is applied on export to CSV.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Separator property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also