Class CsvExportOptions
Configuration options for CSV exports
Provides control over delimiters, quoting, and cell formatting specific to CSV format.
------------------------------------------------
Usage:
var options = new CsvExportOptions
{
CsvDelimiter = ";",
CsvQuoteStrings = true,
CsvNewlineReplacement = " ",
IncludeHeaders = true
};
------------------------------------------------
Inherited Members
Namespace: IronPdf.Extractions
Assembly: IronPdf.dll
Syntax
public class CsvExportOptions : ExportOptionsBase
Remarks
Important Considerations:
Delimiter Choice: Common delimiters include comma (,), semicolon (;), and tab (\t).
Note: CSV delimiter and quoting options affect how data is interpreted by spreadsheet applications.
Related Documentation:
How-To Guide: CSV Export Guide
Constructors
CsvExportOptions()
Declaration
public CsvExportOptions()
Properties
CsvDelimiter
CSV delimiter character
Default: comma (,)
Declaration
public string CsvDelimiter { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
CsvNewlineReplacement
Replacement for newlines in CSV cells
Default: space
Declaration
public string CsvNewlineReplacement { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
CsvQuoteStrings
Whether to quote strings in CSV output
Default: true
Declaration
public bool CsvQuoteStrings { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |