## FormatCondition.SetFormula2 method

设置与此格式条件关联的值或表达式。

```csharp
public void SetFormula2(string formula, bool isR1C1, bool isLocal)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| formula | String | 与此格式条件关联的值或表达式。 如果输入值以'='开头，则将其作为公式。否则将被视为纯值（文本，数字，布尔值）。 对于以'='开头的文本值，用户可以将其输入为格式：“=\”=...\“”的公式。 |
| isR1C1 | Boolean | 公式是否为 R1C1 公式。 |
| isLocal | Boolean | 公式是否为区域设置格式。 |

### 也可以看看

* class [FormatCondition](../../formatcondition)
* 命名空间 [Aspose.Cells](../../formatcondition)
* 部件 [Aspose.Cells](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.dll -->
