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 |
---|---|---|
Text |
Auto | A Text |
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 Quotation |
---|---|
Workbook |
|
#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.