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
package
ExcelPackageThe 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
formula
stringA 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
formula
stringA string containing the formula
address
stringAddress of the formula
options
ExcelCalculationOptionCalculation options
Returns
ParseAt(string)
Parses a formula in a specific location
public virtual object ParseAt(string address)
Parameters
address
stringaddress 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
worksheetName
stringName of the worksheet
row
intRow in the worksheet
col
intColumn in the worksheet
Returns
- object
The result of the calculation