ExcelCsvOptions
OfficeIMO.Excel.Csv
Settings for moving rows between CSV and worksheets, in either direction. CSV parsing and writing stay with CsvReaderOptions and CsvSaveOptions; these settings place the rows in the workbook.
Inheritance
- object
- ExcelCsvOptions
Usage
Explore 18 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters 18
- Method ExcelDocumentCsvExtensions.ImportCsv
- Method ExcelDocumentCsvExtensions.ImportCsvAsync
- Method ExcelDocumentCsvExtensions.ImportCsvFile
- Method ExcelDocumentCsvExtensions.ImportCsvFileAsync
- Method ExcelDocumentCsvExtensions.ImportCsvText
- Method ExcelDocumentCsvExtensions.SaveAsExcel
- Method ExcelDocumentCsvExtensions.SaveAsExcelAsync
- Method ExcelDocumentCsvExtensions.ToExcel
- Method ExcelDocumentCsvExtensions.ToExcelAsync
- Method ExcelSheetCsvExtensions.ImportCsv
- Method ExcelSheetCsvExtensions.ImportCsvAsync
- Method ExcelSheetCsvExtensions.ImportCsvFile
- Method ExcelSheetCsvExtensions.ImportCsvFileAsync
- Method ExcelSheetCsvExtensions.ImportCsvText
- Method ExcelSheetCsvExtensions.SaveAsCsv
- Method ExcelSheetCsvExtensions.SaveAsCsvAsync
- Method ExcelSheetCsvExtensions.ToCsv
- Method ExcelSheetCsvExtensions.ToCsvAsync
Constructors
public ExcelCsvOptions() #Inherited Methods
Properties
public CsvReaderOptions CsvReader { get; set; } #Gets or sets how CSV is parsed and typed. Defaults to a detected delimiter and inferred column types. A file import without options reads a .tsv or .tab file as IANA TSV, where quotes are data.
public CsvSaveOptions? CsvSave { get; set; } #Gets or sets how CSV is written: delimiter, quoting, encoding and line breaks. Defaults to the CSV defaults.
public ExcelReaderOptions? ExcelReader { get; set; } #Gets or sets how worksheet cells are read for CSV: value projection and culture.
public ExcelCreateOptions? ExcelCreate { get; set; } #Gets or sets the options for the workbook that ToExcel and SaveAsExcel create.
public ExcelSaveOptions? ExcelSave { get; set; } #Gets or sets how SaveAsExcel writes the workbook, including its file format.
public string SheetName { get; set; } #Gets or sets the worksheet a CSV import adds to a workbook. Defaults to Import.
public string? Range { get; set; } #Gets or sets the A1 range written as CSV, or null (the default) for the used range.
public bool HeaderRow { get; set; } #Gets or sets whether the worksheet's first row holds the field names: written above imported rows, and read as names when a worksheet is written as CSV. Defaults to true.
public int StartRow { get; set; } #Gets or sets the 1-based row an import starts at. Defaults to 1.
public int StartColumn { get; set; } #Gets or sets the 1-based column an import starts at. Defaults to 1.
public bool CreateTable { get; set; } #Gets or sets whether an import creates an Excel table over its rows. Defaults to true.
public string? TableName { get; set; } #Gets or sets the table name; when empty, the worksheet name is used.
public ExcelTableStyle TableStyle { get; set; } #Gets or sets the table style. Defaults to ExcelTableStyle.TableStyleMedium2.
public bool IncludeAutoFilter { get; set; } #Gets or sets whether the table has filter buttons. Defaults to true.
public bool AutoFit { get; set; } #Gets or sets whether imported columns are sized to their content.
public bool FailOnLoss { get; set; } #Gets or sets whether a conversion (ToExcel, SaveAsExcel, ToCsv, SaveAsCsv) fails before writing when its report describes loss. Imports into an existing workbook only report it.