Freigeben über


RecalcEngine Class

Definition

Holds a set of Power Fx variables and formulas. Formulas are recalculated when their dependent variables change.

public sealed class RecalcEngine : Microsoft.PowerFx.Engine
type RecalcEngine = class
    inherit Engine
Public NotInheritable Class RecalcEngine
Inherits Engine
Inheritance
RecalcEngine

Constructors

RecalcEngine()

Initializes a new instance of the RecalcEngine class. Create a new power fx engine.

RecalcEngine(PowerFxConfig)

Properties

Config

Configuration symbols for this Power Fx engine.

(Inherited from Engine)
EngineSymbols
FunctionInfos

Get all functions from the config and symbol tables.

(Inherited from Engine)
PostCheckErrorHandlers (Inherited from Engine)
PrimitiveTypes

Builtin Types supported by this engine.

(Inherited from Engine)
SupportedFunctions

Builtin functions supported by this engine.

(Inherited from Engine)

Methods

AddUserDefinedFunction(String, CultureInfo, ReadOnlySymbolTable, Boolean) (Inherited from Engine)
AddUserDefinitions(String, CultureInfo, Action<String,FormulaValue>)

Add a set of user-defined formulas and functions to the engine.

Check(ParseResult, RecordType) (Inherited from Engine)
Check(String, ParserOptions, ReadOnlySymbolTable) (Inherited from Engine)
Check(String, RecordType, ParserOptions)

Parse and Bind an expression.

(Inherited from Engine)
CreateFieldRenamer(RecordType, DPath, DName, CultureInfo)

Creates a renamer instance for updating a field reference from parameters in expressions.

(Inherited from Engine)
CreateFieldRenamer(RecordType, DPath, DName, ParserOptions)

Creates a renamer instance for updating a field reference from parameters in expressions.

(Inherited from Engine)
CreateOptionSetRenamer(RecordType, DPath, DName, CultureInfo) (Inherited from Engine)
DeleteFormula(String)

Delete formula that was previously created.

Eval(String, RecordValue, ParserOptions)

Evaluate an expression as text and return the result.

EvalAsync(String, CancellationToken, ParserOptions, ReadOnlySymbolTable, RuntimeConfig)
EvalAsync(String, CancellationToken, ReadOnlySymbolValues)
EvalAsync(String, CancellationToken, RecordValue, ParserOptions)
GetAllFunctionNames()

List all functions (both builtin and custom) registered with this evaluator.

(Inherited from Engine)
GetCombinedEngineSymbols()

Get a combined engine symbol table, including builtins and config.

(Inherited from Engine)
GetDefaultParserOptionsCopy() (Inherited from Engine)
GetDisplayExpression(String, ReadOnlySymbolTable, CultureInfo) (Inherited from Engine)
GetDisplayExpression(String, RecordType, CultureInfo)

Convert references in an expression to the display form.

(Inherited from Engine)
GetInvariantExpression(String, RecordType, CultureInfo)

Convert references in an expression to the invariant form.

(Inherited from Engine)
GetInvariantExpressionParserOption(String, RecordType, ParserOptions) (Inherited from Engine)
GetValue(String)

Get the current value of a formula.

Parse(String, ParserOptions)

Parse the expression without doing any binding.

(Inherited from Engine)
PostCheck(CheckResult) (Inherited from Engine)
SetFormula(String, FormulaWithParameters, Action<String,FormulaValue>)

Create a formula that will be recalculated when its dependent values change.

SetFormula(String, String, Action<String,FormulaValue>)
Suggest(CheckResult, Int32, IServiceProvider) (Inherited from Engine)
Suggest(CheckResult, Int32)

Get intellisense from the formula, with parser options.

(Inherited from Engine)
Suggest(String, RecordType, Int32) (Inherited from Engine)
Tokenize(String, CultureInfo)

Tokenize an expression to a sequence of Tokens.

(Inherited from Engine)
TryGetValue(String, FormulaValue)

Try to get the current value of a formula.

TryGetVariableType(String, FormulaType)
UpdateSupportedFunctions(SymbolTable)
UpdateVariable(String, Boolean)
UpdateVariable(String, DateTime)
UpdateVariable(String, Decimal)
UpdateVariable(String, Double)
UpdateVariable(String, FormulaValue, SymbolProperties)

Create or update a named variable to a value, with custom CanSet/Mutate attributes.

UpdateVariable(String, FormulaValue)

Create or update a named variable to a value, with custom CanSet/Mutate attributes.

UpdateVariable(String, Guid)
UpdateVariable(String, Int32)
UpdateVariable(String, Int64)
UpdateVariable(String, String)
UpdateVariable(String, TimeSpan)

Extension Methods

CreateEditorScope(Engine, ParserOptions, ReadOnlySymbolTable)

A scope is the context for a specific formula bar. This will accept the text from the formula bar (editor), use the additional parameters here, and then call Engine.Check().

Applies to