CsvParseOptions
public sealed class CsvParseOptionsOptions for CsvParser.Parse(string, CsvParseOptions). Sensible defaults match the
most common spreadsheet exports (RFC 4180 with auto-detected delimiter
and header).
Fields
Section titled “Fields”
Delimiter
Section titled “Delimiter”public char DelimiterField delimiter. ‘\0’ (default) auto-detects between ,, ;, \t, and |.
Returns
System.Char
public char QuoteField quote character. RFC 4180 uses ”.
Returns
System.Char
HeaderMode
Section titled “HeaderMode”public CsvHeaderMode HeaderModeHeader row treatment. CsvHeaderMode.Auto compares the first row with the rows below it: text
above a column of numbers, dates or Booleans makes it a header, a number or date there makes it data, and a
table of text only takes a first row without numbers as a header. Set to CsvHeaderMode.Yes /
CsvHeaderMode.No to force.
Returns
ChartGuru.CsvHeaderMode
NumberCulture
Section titled “NumberCulture”public CultureInfo NumberCultureCulture whose number format the cells use, such as de-DE for 1.234,5. Null reads invariant numbers,
taking a lone comma that is not followed by exactly three digits as a decimal comma (1,5) and other
commas as thousands separators (1,234), and reads decimal commas throughout text delimited by semicolons.
Returns
System.Globalization.CultureInfo
CommentPrefix
Section titled “CommentPrefix”public string CommentPrefixLines starting with this prefix are skipped before parsing. Empty disables.
Returns
System.String
SkipRows
Section titled “SkipRows”public int SkipRowsNumber of physical lines to skip at the top of the file.
Returns
System.Int32
MaxRows
Section titled “MaxRows”public int MaxRowsMaximum data rows to retain (0 = unlimited).
Returns
System.Int32
TrimCells
Section titled “TrimCells”public bool TrimCellsTrim whitespace from every parsed cell.
Returns
System.Boolean
Methods
Section titled “Methods”
Clone()
Section titled “Clone()”public CsvParseOptions Clone()Creates an independent copy of this Csv Parse Options; later configuration changes do not affect the original instance.
Returns
ChartGuru.CsvParseOptions
Constructors
Section titled “Constructors”
CsvParseOptions()
Section titled “CsvParseOptions()”public CsvParseOptions()