Class CsvLoadOptions
Load options for CSV (comma-separated values) files.
Inherited Members
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public sealed class CsvLoadOptions
Constructors
CsvLoadOptions()
Load options for CSV (comma-separated values) files.
Declaration
public CsvLoadOptions()
Properties
CancellationToken
Token that can cancel the load operation before it starts.
Declaration
public CancellationToken CancellationToken { get; set; }
Property Value
| Type | Description |
|---|---|
| CancellationToken |
Delimiter
Specifies the field delimiter character. Default is comma (',').
Declaration
public char Delimiter { get; set; }
Property Value
| Type | Description |
|---|---|
| char |
Encoding
Specifies the text encoding for reading the CSV file. Default is UTF-8.
Declaration
public Encoding Encoding { get; set; }
Property Value
| Type | Description |
|---|---|
| Encoding |
HasFormulas
Gets or sets whether values starting with '=' are treated as formulas. Default is true.
Declaration
public bool HasFormulas { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
TrimWhitespace
Gets or sets whether leading and trailing whitespace is trimmed from each field. Default is true.
Declaration
public bool TrimWhitespace { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |