## AddCondition(FormatConditionType, OperatorType, string, string) {#addcondition_1}

Fügt eine Formatierungsbedingung hinzu.

```csharp
public int AddCondition(FormatConditionType type, OperatorType operatorType, string formula1, 
    string formula2)
```

| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| type | FormatConditionType | der bedingten Formatierung. Es könnte eines der Mitglieder von FormatConditionType sein. |
| operatorType | OperatorType | Der Vergleich[`OperatorType`](../../operatortype). Es könnte eines der Mitglieder von OperatorType sein. |
| formula1 | String | Der Wert oder Ausdruck, der der bedingten Formatierung zugeordnet ist. Wenn der Eingabewert mit „=“ beginnt, wird er als Formel verwendet. Andernfalls wird er als einfacher Wert (Text, Zahl, Bool) verwendet. Für Textwert that beginnt mit '=', der Benutzer kann es als Formel im Format "=\"=...\"" eingeben. |
| formula2 | String | Der Wert oder Ausdruck, der der bedingten Formatierung zugeordnet ist. Das Eingabeformat ist dasselbe wie bei formula1 |

### Rückgabewert

Bedingungsobjektindex formatieren;

### Siehe auch

* enum [FormatConditionType](../../formatconditiontype)
* enum [OperatorType](../../operatortype)
* class [FormatConditionCollection](../../formatconditioncollection)
* namensraum [Aspose.Cells](../../formatconditioncollection)
* Montage [Aspose.Cells](../../../)

---

## AddCondition(FormatConditionType) {#addcondition}

Fügt eine Formatbedingung hinzu.

```csharp
public int AddCondition(FormatConditionType type)
```

| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| type | FormatConditionType | Bedingungstyp formatieren. |

### Rückgabewert

Bedingungsobjektindex formatieren;

### Siehe auch

* enum [FormatConditionType](../../formatconditiontype)
* class [FormatConditionCollection](../../formatconditioncollection)
* namensraum [Aspose.Cells](../../formatconditioncollection)
* Montage [Aspose.Cells](../../../)

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