add_condition method
Contents
[
Hide
]add_condition
Add a format condition.
Returns
Formatting condition object index;
def add_condition(self, type):
...
Parameter | Type | Description |
---|---|---|
type | FormatConditionType | Format condition type. |
add_condition
Adds a formatting condition.
Returns
Formatting condition object index;
def add_condition(self, type, operator_type, formula1, formula2):
...
Parameter | Type | Description |
---|---|---|
type | FormatConditionType | The type of format condition. |
operator_type | OperatorType | The operator type |
formula1 | str | The value or expression associated with conditional formatting. If the input value starts with ‘=’, then it will be taken as formula. Otherwise it will be taken as plain value(text, number, bool). For text value that starts with ‘=’, user may input it as formula in format: “="=…"”. |
formula2 | str | The value or expression associated with conditional formatting. The input format is same with formula1 |
See Also
- module
aspose.cells
- class
FormatConditionCollection