RecalcEngine.SetFormula Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| SetFormula(String, FormulaWithParameters, Action<String,FormulaValue>) |
Create a formula that will be recalculated when its dependent values change. |
| SetFormula(String, String, Action<String,FormulaValue>) |
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.
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
- onUpdate
- Action<String,FormulaValue>