Click or drag to resize
CsvSaveOptionsFormatProvider Property
Gets or sets the format provider for the CSV file.

Namespace: GemBox.Spreadsheet
Assembly: GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1000
Syntax
public IFormatProvider FormatProvider { get; set; }

Property Value

Type: IFormatProvider
Exceptions
ExceptionCondition
ArgumentNullExceptionValue is set to null.
Examples

Following code demonstrates how to save ExcelCell.Values to CSV file format. Value (numbers, dates, etc.) will be converted to string using specified culture.

ef.Save(
    "Report.csv",
    new CsvSaveOptions(CsvType.CommaDelimited)
    {
        FormatProvider = CultureInfo.CurrentCulture
    });
See Also