Class FormulaParser
- Namespace
- OfficeOpenXml.FormulaParsing
- Assembly
- EPPlus.dll
Entry class for the formula calulation engine of EPPlus.
public class FormulaParser : IDisposable
- Inheritance
-
FormulaParser
- Implements
- Inherited Members
Constructors
FormulaParser(ExcelPackage)
Constructor
public FormulaParser(ExcelPackage package)
Parameters
packageExcelPackageThe package to calculate
Properties
Logger
An IFormulaParserLogger for logging during calculation
public IFormulaParserLogger Logger { get; }
Property Value
Methods
Dispose()
Implementation of IDisposable
public void Dispose()
Parse(string)
Parses a formula
public virtual object Parse(string formula)
Parameters
formulastringA string containing the formula
Returns
- object
The result of the calculation
Parse(string, string, ExcelCalculationOption)
Parses a formula at a specific address
public virtual object Parse(string formula, string address, ExcelCalculationOption options = null)
Parameters
formulastringA string containing the formula
addressstringAddress of the formula
optionsExcelCalculationOptionCalculation options
Returns
ParseAt(string)
Parses a formula in a specific location
public virtual object ParseAt(string address)
Parameters
addressstringaddress of the cell to calculate
Returns
- object
The result of the calculation
ParseAt(string, int, int)
Parses a formula in a specific location
public virtual object ParseAt(string worksheetName, int row, int col)
Parameters
worksheetNamestringName of the worksheet
rowintRow in the worksheet
colintColumn in the worksheet
Returns
- object
The result of the calculation