Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CsvDocumentExporterOptions.QuotationMode Property

Gets or sets a value indicating how to quote text values in the exported CSV document.

Namespace: DevExpress.XtraSpreadsheet.Export

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

[DefaultValue(TextQuotationMode.Auto)]
public override TextQuotationMode QuotationMode { get; set; }

#Property Value

Type Default Description
TextQuotationMode Auto

A TextQuotationMode enumeration value that specifies how to quote text fields in the document.

Available values:

Name Description
Auto

Specifies that a text field should be quoted only if it contains special characters (such as a delimiter, quotation mark, or newline).

Always

Specifies that all text fields should be enclosed in quotation marks.

Never

Specifies that text fields should never be enclosed in quotation marks.

#Property Paths

You can access this nested property as listed below:

Object Type Path to QuotationMode
WorkbookExportOptions
.Csv .QuotationMode

#Remarks

If QuotationMode is Auto or Always, you can use the CsvDocumentExporterOptions.TextQualifier property to specify the character used to enclose text fields in the resulting document.

See Also