FormatCondition.SetFormulas

FormatCondition.SetFormulas method

Sets the value or expression associated with this format condition.

public void SetFormulas(string formula1, string formula2, bool isR1C1, bool isLocal)
ParameterTypeDescription
formula1StringThe value or expression associated with this format condition. If the input value starts with ‘=’, then it will be taken as formula. Otherwise it will be taken as plain value(text, number, bool). For text value that starts with ‘=’, user may input it as formula in format: “="=…"”.
formula2StringThe value or expression associated with this format condition. The input format is same with formula1
isR1C1BooleanWhether the formula is R1C1 formula.
isLocalBooleanWhether the formula is locale formatted.

See Also