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

يضيف شرط تنسيق .

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

| معامل | يكتب | وصف |
| --- | --- | --- |
| type | FormatConditionType | من التنسيق الشرطي . يمكن أن يكون أحد أعضاء FormatConditionType. |
| operatorType | OperatorType | المقارنة[`OperatorType`](../../operatortype). قد يكون أحد أعضاء OperatorType. |
| formula1 | String | القيمة أو التعبير المرتبط بالتنسيق الشرطي . إذا كانت قيمة الإدخال تبدأ بـ '=' ، فسيتم اعتبارها كصيغة . وإلا فسيتم اعتبارها كقيمة عادية (نص ، رقم ، منطقي). يبدأ بـ '=' ، يمكن للمستخدم إدخاله كصيغة بتنسيق: "= \" = ... \ "". |
| formula2 | String | القيمة أو التعبير المرتبط بالتنسيق الشرطي . تنسيق الإدخال هو نفسه مع الصيغة 1 |

### قيمة الإرجاع

فهرس كائن شرط التنسيق ؛

### أنظر أيضا

* enum [FormatConditionType](../../formatconditiontype)
* enum [OperatorType](../../operatortype)
* class [FormatConditionCollection](../../formatconditioncollection)
* مساحة الاسم [Aspose.Cells](../../formatconditioncollection)
* المجسم [Aspose.Cells](../../../)

---

## AddCondition(FormatConditionType) {#addcondition}

أضف شرط تنسيق .

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

| معامل | يكتب | وصف |
| --- | --- | --- |
| type | FormatConditionType | نوع شرط التنسيق. |

### قيمة الإرجاع

فهرس كائن شرط التنسيق ؛

### أنظر أيضا

* enum [FormatConditionType](../../formatconditiontype)
* class [FormatConditionCollection](../../formatconditioncollection)
* مساحة الاسم [Aspose.Cells](../../formatconditioncollection)
* المجسم [Aspose.Cells](../../../)

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