[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.CsvSaveOptions.QuoteColumns

QuoteColumns Property

QuoteColumns

Gets or sets the zero-based column indices that are configured to be quoted during CSV export.

When this property is set, only the specified columns are forced to use the cell separator as quotes, while other columns are not quoted unless required by the CSV content. Invalid column indices are preserved in this collection, but they have no effect during export.

Declaration
public IEnumerable<int> QuoteColumns { get; set; }
Public Property QuoteColumns As IEnumerable(Of Integer)
Examples
CsvSaveOptions options = new CsvSaveOptions();
options.QuoteColumns = new int[] { 1, 3, 4 };
IEnumerable<int> quoteColumns = options.QuoteColumns;
workbook.Save("path/to/output.csv", options);