[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.CsvParseResult.Value

Value Property

Value

Gets or sets the parsed value.

The value should be double, string, bool, or CalcError. Other values are discarded.

Declaration
public object Value { get; set; }
Public Property Value As Object
Examples
CsvOpenOptions options = new CsvOpenOptions();
options.Parser = new ValueParser();
string filePath = Path.Combine(Path.GetTempPath(), "data.csv");
File.WriteAllText(filePath, "Code\n0012");
workbook.Open(filePath, options);
IWorksheet activeSheet = workbook.ActiveSheet;

class ValueParser : ICsvParser
{
    public void Parse(CsvParseResult result, CsvParseContext context)
    {
        result.Value = context.Text;
        object value = result.Value;
    }
}