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.v24.1.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

[TypeConverter(typeof(CsvSeparatorConverter))]
[XtraSerializableProperty]
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:

Object Type Path to Separator
ExportOptions
.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.

See Also