TxtDocumentExporterOptions.QuotationMode Property
Gets or sets a value indicating how to quote text values in the exported 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 |
|
Remarks
If QuotationMode is Auto or Always, you can use the TxtDocumentExporterOptions.TextQualifier property to specify the character used to enclose text fields in the resulting document.