OfficeIMO

API Reference

Class

CsvLoadOptions

Namespace OfficeIMO.CSV
Assembly OfficeIMO.CSV
Modifiers sealed

Options controlling how CSV content is parsed and loaded.

Inheritance

  • Object
  • CsvLoadOptions

Constructors

public CsvLoadOptions() #

Methods

public CsvLoadOptions Clone() #
Returns: CsvLoadOptions

Creates a shallow copy of the options instance.

Properties

public Boolean HasHeaderRow { get; set; } #

Gets or sets whether the first record in the file represents the header row. Default is true.

public Char Delimiter { get; set; } #

Gets or sets the field delimiter character. Default is ,.

public Boolean TrimWhitespace { get; set; } #

Gets or sets whether leading and trailing whitespace should be trimmed from unquoted fields. Default is true.

public CultureInfo Culture { get; set; } #

Gets or sets the culture used for type conversions when reading. Defaults to InvariantCulture.

public Boolean AllowEmptyLines { get; set; } #

Gets or sets whether empty lines should be preserved. Default is false (empty lines are ignored).

public CsvLoadMode Mode { get; set; } #

Gets or sets the load mode controlling materialization behavior. Default is InMemory. Use Stream for very large files when you only need forward-only enumeration; prefer InMemory when you plan to sort/filter/transform.

public Encoding Encoding { get; set; } #

Gets or sets the text encoding to use when reading from files. Defaults to UTF-8 if not provided.