CsvSettings
Configures delimiter, quote, encoding, and header options for CSV file import and export operations.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.FormatProviders.TextBased.Core
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class CsvSettings
Inheritance: objectCsvSettings
Constructors
Initializes a new instance of the CsvSettings class with default values from the current culture for delimiter, quote, and encoding.
public CsvSettings()
Methods
Determines whether the specified object is a CsvSettings instance with equal delimiter, quote, header row, and encoding values.
Operators
Determines whether two CsvSettings instances are not equal by comparing their delimiter, quote, header row, and encoding settings.
public static bool operator !=(CsvSettings first, CsvSettings second)
The first value.
secondCsvSettingsThe second value.
Returns:The result of the operator.
Determines whether two CsvSettings instances are equal by comparing their delimiter, quote, header row, and encoding settings.
public static bool operator ==(CsvSettings first, CsvSettings second)
The first value.
secondCsvSettingsThe second value.
Returns:The result of the operator.
Properties
Gets or sets the character used to separate values in CSV data, defaulting to the list separator of the current culture.
public char Delimiter { get; set; }
The delimiter symbol.
Gets or sets the text encoding used for reading and writing CSV files, defaulting to UTF-8 with BOM.
public Encoding Encoding { get; set; }
The encoding.
Gets or sets a value indicating whether the first row of CSV data contains column headers rather than data, defaulting to false.
public bool HasHeaderRow { get; set; }
The has header row.
Gets or sets the character used to quote values containing delimiters or line breaks, defaulting to double-quote (").
public char Quote { get; set; }
The quote symbol.
Gets or sets a value indicating whether empty cell values are included in the CSV export, affecting trailing delimiters on rows.
public bool ShouldExportEmptyValues { get; set; }
True if the empty values are exported; otherwise false.