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

Ajoute une condition de formatage.

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

| Paramètre | Taper | La description |
| --- | --- | --- |
| type | FormatConditionType | de mise en forme conditionnelle. Il peut s'agir de l'un des membres de FormatConditionType. |
| operatorType | OperatorType | La comparaison[`OperatorType`](../../operatortype). Il peut s'agir de l'un des membres de OperatorType. |
| formula1 | String | La valeur ou l'expression associée à la mise en forme conditionnelle. Si la valeur d'entrée commence par '=', elle sera alors considérée comme une formule. Sinon, elle sera considérée comme une valeur simple (texte, nombre, booléen). Pour une valeur de texte qui commence par '=', l'utilisateur peut le saisir sous forme de formule au format : "=\"=...\"". |
| formula2 | String | La valeur ou l'expression associée à la mise en forme conditionnelle. Le format d'entrée est identique à la formule1 |

### Return_Value

Index d'objet de condition de formatage ;

### Voir également

* enum [FormatConditionType](../../formatconditiontype)
* enum [OperatorType](../../operatortype)
* class [FormatConditionCollection](../../formatconditioncollection)
* espace de noms [Aspose.Cells](../../formatconditioncollection)
* Assemblée [Aspose.Cells](../../../)

---

## AddCondition(FormatConditionType) {#addcondition}

Ajouter une condition de format.

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

| Paramètre | Taper | La description |
| --- | --- | --- |
| type | FormatConditionType | Formater le type de condition. |

### Return_Value

Index d'objet de condition de formatage ;

### Voir également

* enum [FormatConditionType](../../formatconditiontype)
* class [FormatConditionCollection](../../formatconditioncollection)
* espace de noms [Aspose.Cells](../../formatconditioncollection)
* Assemblée [Aspose.Cells](../../../)

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