[]
Represents a conditional format.
public interface IFormatCondition
Public Interface IFormatCondition
Name | Description |
---|---|
AppliesTo | Returns a IRange object specifying the cell range to which the formatting rule is applied. |
Borders | Returns a IBorders collection that represents the borders of a style or a range of cells (including a range defined as part of a conditional format). |
DateOperator | Gets or sets the date operator used in the format condition. |
Font | Returns a IFont object that represents the font of the specified object. |
Formula1 | Returns the value or expression associated with the conditional format or data validation. Can be a constant value, a string value, a cell reference, or a formula. |
Formula2 | Returns the value or expression associated with the second part of a conditional format or data validation. |
Interior | Returns an IInterior object that represents the interior of the specified object. |
NumberFormat | Gets or sets the number format applied to a cell if the conditional formatting rule evaluates to |
Operator | Returns a FormatConditionOperator value that represents the operator for the conditional format. |
Priority | Gets 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 | Gets or sets a bool value that determines if additional formatting rules on the cell should be evaluated if the current rule evaluates to |
Text | Gets or sets a string value specifying the text string used by the conditional formatting rule. |
TextOperator | Gets or sets one of the constants of the ContainsOperator enumeration, specifying the text search performed by the conditional formatting rule. |
Type | Gets a FormatConditionType value that represents the format condition type. |
Name | Description |
---|---|
Delete() | Deletes this conditional format. |
Modify(ContainsOperator, string) | Modifies an existing conditional format. |
Modify(FormatConditionType, FormatConditionOperator, string, string, ContainsOperator, TimePeriods) | Modifies an existing conditional format. |
Modify(TimePeriods) | Modifies an existing conditional format. |
ModifyAppliesToRange(Reference) | Modifies an existing text conditional format. |
ModifyAppliesToRange(string) | Sets the cell range to which this formatting rule applies. |
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. |