## FormatConditionCollection.Add method

Fügt eine Formatierungsbedingung und einen betroffenen Zellbereich zu den FormatConditions hinzu Die FormatConditions können bis zu drei bedingte Formatierungen enthalten. Verweise auf die anderen Blätter sind in den Formeln der bedingten Formatierung nicht erlaubt.

```csharp
public int[] Add(CellArea cellArea, FormatConditionType type, OperatorType operatorType, 
    string formula1, string formula2)
```

| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| cellArea | CellArea | Bedingt formatierter Zellbereich. |
| type | FormatConditionType | Art der bedingten Formatierung. Es könnte eines der Mitglieder von FormatConditionType sein. |
| operatorType | OperatorType | Vergleichsoperator. Er könnte eines der Mitglieder von OperatorType sein. |
| formula1 | String | Der Wert oder Ausdruck, der der bedingten Formatierung zugeordnet ist. |
| formula2 | String | Der Wert oder Ausdruck, der der bedingten Formatierung zugeordnet ist |

### Rückgabewert

[0]: Objektindex der Formatierungsbedingung;[1] Bewirkter Zellbereichsindex.

### Siehe auch

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

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