Class ParsingConfiguration
Configuration of a FormulaParser
Inheritance
System.Object
ParsingConfiguration
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml.FormulaParsing
Assembly: EPPlus.dll
Syntax
public class ParsingConfiguration
Properties
AllowCircularReferences
Configures the formula calc engine to allow circular references.
Declaration
public bool AllowCircularReferences { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ExpressionCompiler
The IExpressionCompiler of the parser
Declaration
public IExpressionCompiler ExpressionCompiler { get; }
Property Value
Type | Description |
---|---|
IExpressionCompiler |
FunctionRepository
The FunctionRepository of the parser
Declaration
public FunctionRepository FunctionRepository { get; }
Property Value
Type | Description |
---|---|
FunctionRepository |
GraphBuilder
The IExpressionGraphBuilder of the parser
Declaration
public IExpressionGraphBuilder GraphBuilder { get; }
Property Value
Type | Description |
---|---|
IExpressionGraphBuilder |
Lexer
The ILexer of the parser
Declaration
public virtual ILexer Lexer { get; }
Property Value
Type | Description |
---|---|
ILexer |
Logger
The IFormulaParserLogger of the parser
Declaration
public IFormulaParserLogger Logger { get; }
Property Value
Type | Description |
---|---|
IFormulaParserLogger |
Methods
AttachLogger(IFormulaParserLogger)
Attaches a logger, errors and log entries will be written to the logger during the parsing process.
Declaration
public ParsingConfiguration AttachLogger(IFormulaParserLogger logger)
Parameters
Type | Name | Description |
---|---|---|
IFormulaParserLogger | logger |
Returns
Type | Description |
---|---|
ParsingConfiguration |
DetachLogger()
if a logger is attached it will be removed.
Declaration
public ParsingConfiguration DetachLogger()
Returns
Type | Description |
---|---|
ParsingConfiguration |
SetExpresionCompiler(IExpressionCompiler)
Replaces the expression compiler with any instance implementing the IExpressionCompiler interface.
Declaration
public ParsingConfiguration SetExpresionCompiler(IExpressionCompiler expressionCompiler)
Parameters
Type | Name | Description |
---|---|---|
IExpressionCompiler | expressionCompiler |
Returns
Type | Description |
---|---|
ParsingConfiguration |
SetGraphBuilder(IExpressionGraphBuilder)
Replaces the graphbuilder with any instance implementing the IExpressionGraphBuilder interface.
Declaration
public ParsingConfiguration SetGraphBuilder(IExpressionGraphBuilder graphBuilder)
Parameters
Type | Name | Description |
---|---|---|
IExpressionGraphBuilder | graphBuilder |
Returns
Type | Description |
---|---|
ParsingConfiguration |
SetLexer(ILexer)
Replaces the lexer with any instance implementing the ILexer interface.
Declaration
public ParsingConfiguration SetLexer(ILexer lexer)
Parameters
Type | Name | Description |
---|---|---|
ILexer | lexer |
Returns
Type | Description |
---|---|
ParsingConfiguration |