Skip to content

CsvParseOptions

ClassChartGuruChartGuru
public sealed class CsvParseOptions

Options for ChartGuru.CsvParser.Parse(System.String%2cChartGuru.CsvParseOptions). Sensible defaults match the most common spreadsheet exports (RFC 4180 with auto-detected delimiter and header).

public char Delimiter

Field delimiter. ‘\0’ (default) auto-detects between ,, ;, \t, and |.

Returns

System.Char

public char Quote

Field quote character. RFC 4180 uses .

Returns

System.Char

public CsvHeaderMode HeaderMode

Header row treatment. ChartGuru.CsvHeaderMode.Auto heuristically classifies the first row as a header when its cells are all non-numeric. Set to ChartGuru.CsvHeaderMode.Yes / ChartGuru.CsvHeaderMode.No to force.

Returns

ChartGuru.CsvHeaderMode

public string CommentPrefix

Lines starting with this prefix are skipped before parsing. Empty disables.

Returns

System.String

public int SkipRows

Number of physical lines to skip at the top of the file.

Returns

System.Int32

public int MaxRows

Maximum data rows to retain (0 = unlimited).

Returns

System.Int32

public bool TrimCells

Trim whitespace from every parsed cell.

Returns

System.Boolean

public CsvParseOptions Clone()

Creates an independent copy of this Csv Parse Options; later configuration changes do not affect the original instance.

Returns

ChartGuru.CsvParseOptions

public CsvParseOptions()