## GetFormula2(bool, bool) {#getformula2}

获取与此格式条件关联的值或表达式。

```csharp
public string GetFormula2(bool isR1C1, bool isLocal)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| isR1C1 | Boolean | 公式是否需要格式化为 R1C1。 |
| isLocal | Boolean | 公式是否需要按语言环境格式化。 |

### 返回值

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

### 也可以看看

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

---

## GetFormula2(bool, bool, int, int) {#getformula2_1}

获取单元格条件格式的值或表达式。

```csharp
public string GetFormula2(bool isR1C1, bool isLocal, int row, int column)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| isR1C1 | Boolean | 公式是否需要格式化为 R1C1。 |
| isLocal | Boolean | 公式是否需要按语言环境格式化。 |
| row | Int32 | 行索引。 |
| column | Int32 | 列索引。 |

### 返回值

与单元格的条件格式关联的值或表达式。

### 评论

给定的单元格必须包含在此条件格式中，否则将返回 null。

### 也可以看看

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

---

## GetFormula2(int, int) {#getformula2_2}

获取单元格条件格式的公式。

```csharp
public string GetFormula2(int row, int column)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| row | Int32 | 行索引。 |
| column | Int32 | 列索引。 |

### 返回值

公式。

### 也可以看看

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

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