VegaRise.NET
HomeAPI Reference
Back to Table

FromCsvMethod

Definition

Namespace
DOM.Elements.TableElements
Assembly
DOM.dll

Overloads

FromCsv(string filePath, bool hasHeaderRow, char delimiter, TableStyle style)

Creates a from a CSV file located at the specified path. Table

FromCsv(string filePath, bool hasHeaderRow, char delimiter, TableStyle style)

Table FromCsv(string filePath, bool hasHeaderRow, char delimiter, TableStyle style)

Creates a from a CSV file located at the specified path. Table

Parameters

filePath
The full path to the CSV file.
hasHeaderRow
Indicates whether the first row represents column headers.
delimiter
The character used to separate values in the CSV file. Default is comma (,).
style
An optional to apply to the resulting table. TableStyle

Returns

Table

A populated with data from the CSV file. Table

Remarks

This method performs basic CSV parsing using . For complex CSV formats (escaped delimiters, multi-line fields), consider using a dedicated CSV parser before creating the table. Split(char)

FromCsv(Stream stream, bool hasHeaderRow, char delimiter, TableStyle style)

Table FromCsv(Stream stream, bool hasHeaderRow, char delimiter, TableStyle style)

Creates a from CSV data read from a stream. Table

Parameters

stream
The input containing CSV data. Stream
hasHeaderRow
Indicates whether the first row represents column headers.
delimiter
The character used to separate values in the CSV data. Default is comma (,).
style
An optional to apply to the resulting table. TableStyle

Returns

Table

A populated with the parsed CSV data. Table

Remarks

The stream is read using a and disposed after use. This implementation uses simple delimiter-based splitting and may not support advanced CSV scenarios such as escaped quotes or embedded delimiters. StreamReader