AddCondition
Inhalt
[
Ausblenden
]AddCondition(FormatConditionType, OperatorType, string, string)
Fügt eine Formatierungsbedingung hinzu.
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 VergleichOperatorType. 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
- enum OperatorType
- class FormatConditionCollection
- namensraum Aspose.Cells
- Montage Aspose.Cells
AddCondition(FormatConditionType)
Fügt eine Formatbedingung hinzu.
public int AddCondition(FormatConditionType type)
| Parameter | Typ | Beschreibung |
|---|---|---|
| type | FormatConditionType | Bedingungstyp formatieren. |
Rückgabewert
Bedingungsobjektindex formatieren;
Siehe auch
- enum FormatConditionType
- class FormatConditionCollection
- namensraum Aspose.Cells
- Montage Aspose.Cells