## SetFormula(string, object) {#setformula_2}

设置公式和公式的值。

```csharp
public void SetFormula(string formula, object value)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| formula | String | 公式。 |
| value | Object | 公式的值。 |

### 也可以看看

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

---

## SetFormula(string, FormulaParseOptions, object) {#setformula}

设置公式和公式的值。

```csharp
public void SetFormula(string formula, FormulaParseOptions options, object value)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| formula | String | 公式。 |
| options | FormulaParseOptions | 用于解析公式的选项。 |
| value | Object | 公式的值。 |

### 也可以看看

* class [FormulaParseOptions](../../formulaparseoptions)
* class [Cell](../../cell)
* 命名空间 [Aspose.Cells](../../cell)
* 部件 [Aspose.Cells](../../../)

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