[]
Represents a conditional format.
public interface IFormatCondition
Public Interface IFormatCondition
| Name | Description |
|---|---|
| AppliesTo | Returns the IRange object that specifies the cell range to which the formatting rule is applied. |
| Borders | Returns an instance of IBorders which represents the borders of this conditional format. |
| DateOperator | Gets or sets the TimePeriods Date operator used in the format condition (read or write). |
| Font | Returns an instance of IFont which represents the font of this conditional format. |
| Formula1 | Returns the first formula of this conditional format. |
| Formula2 | Returns the second formula of this conditional format. |
| Interior | Returns an instance of IInterior which represents the background color of this conditional format. |
| NumberFormat | Returns or sets the number format applied to a cell if the conditional formatting rule evaluates to True (read or write object). |
| Operator | Returns the operator of this conditional format. |
| Priority | Returns or sets the priority value of the conditional formatting rule. The priority determines the order of evaluation when multiple conditional formatting rules exist in a worksheet. |
| StopIfTrue | Returns or sets a Boolean value that determines if additional formatting rules on the cell should be evaluated if the current rule evaluates to True. |
| Text | Returns or sets a String value specifying the text used by the conditional formatting rule. |
| TextOperator | Returns or sets one of the constants of the ContainsOperator enumeration, specifying the text search performed by the conditional formatting rule. |
| Type | Returns the type of this conditional format. |
| Name | Description |
|---|---|
| Delete() | Deletes this conditional format. |
| FromJson(string) | Generates the conditional format from the json string. |
| SetFirstPriority() | Sets the priority value for this conditional formatting rule to "1" so that it will be evaluated before all other rules on the worksheet. |
| SetLastPriority() | Sets the evaluation order for this conditional formatting rule so it is evaluated after all other rules on the worksheet. |
| ToJson() | Generates a json string from the conditional format. |