Skip to main content
A newer version of this page is available. .

ExpressionContext Class

Contains formula environment information - the cell or range, the worksheet, the current culture, the reference style, and indicates whether the formula is an array formula.

Namespace: DevExpress.Spreadsheet.Formulas

Assembly: DevExpress.Spreadsheet.v17.2.Core.dll

Declaration

public class ExpressionContext :
    IExpressionContext,
    EvaluationContext

Remarks

The ExpressionContext is required for correct formula evaluation and parsing in the FormulaEngine.Evaluate and FormulaEngine.Parse methods. It determines multiple parameters on which the worksheet formula depends.

If the ExpressionContext instance is not explicitly specified, the active cell in the active worksheet is the expression context.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ExpressionContext class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

Object
ExpressionContext
See Also