Freigeben über


RecalcEngine.SetFormula Method

Definition

Overloads

SetFormula(String, FormulaWithParameters, Action<String,FormulaValue>)

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

public void SetFormula(string name, Microsoft.PowerFx.FormulaWithParameters expr, Action<string,Microsoft.PowerFx.Types.FormulaValue> onUpdate);
member this.SetFormula : string * Microsoft.PowerFx.FormulaWithParameters * Action<string, Microsoft.PowerFx.Types.FormulaValue> -> unit
Public Sub SetFormula (name As String, expr As FormulaWithParameters, onUpdate As Action(Of String, FormulaValue))

Parameters

name
String

name of formula. This can be used in other formulas.

expr
FormulaWithParameters

expression.

onUpdate
Action<String,FormulaValue>

Callback to fire when this value is updated.

Applies to

SetFormula(String, String, Action<String,FormulaValue>)

public void SetFormula(string name, string expr, Action<string,Microsoft.PowerFx.Types.FormulaValue> onUpdate);
member this.SetFormula : string * string * Action<string, Microsoft.PowerFx.Types.FormulaValue> -> unit
Public Sub SetFormula (name As String, expr As String, onUpdate As Action(Of String, FormulaValue))

Parameters

name
String
expr
String

Applies to