Static
$tStatic
nextReturns an [[IWorksheetCellFormat]] interface implementation which represents the format for cells which meet the criteria associated with this condition.
The IWorksheetCellFormat implementation defines the visual attributes which are applied to cells whose value meets the associated condition.
Returns a [[FormatConditionType]] value which identifies the type of condition for this instance.
Returns the
This property is not directly settable; however, the following methods can be used to assign a formula:
When the [[operator]] property is set to Between or NotBetween, this property defines the lower limit of the range for "between" comparisons.
Use the [[operand2]] property to define the upper limit of the range for "between" comparisons.
Returns or sets a
This property is only applicable when the [[operator]] property is set to Between or NotBetween.
Use this property to define the upper limit of the range for "between" comparisons, and the [[operand1]] property to define the lower limit.
This property is not directly settable; however, the following methods can be used to assign a formula:
Returns a [[FormatConditionOperator]] constant which determines the manner in which the cell value is compared against the [[operand1]] property.
This property determines how the cell value is compared to the [[operand1]] property; for example, whether it is equal, greater than, less than, etc.
For the [[FormatConditionOperator]] values 'Between' and 'NotBetween', the [[operand2]] property must also be set.
Returns or sets a value which determines the order of evaluation when multiple conditional formatting rules exist.
By default,
This property makes it possible to weight one condition over another, essentially overriding the condition's ordinal position within the collection.
A lower number means a higher priority; for example, a condition with a priority of 1 is evaluated before one with a priority of 2.
If a cell value meets more than one condition, the format defined by the first condition to be evaluated takes precedence.
Setting the priority on one condition may cause the value of other conditions in the collection to be changed to ensure that each condition has a unique value.
Returns the [[WorksheetRegion]] which identifies the cell range with which this condition is associated.
Returns or sets a boolean indicating whether additional formatting rules
are evaluated if this rule evaluates to true. Applicable only in the case
where the containing
If a cell value meets more than one condition, the format defined by the first condition takes precedence. Individual format properties are "merged" during the resolution process; for example, if one format has red borders and another has a red foreground color, a cell value which meets both conditions may be formatted with both red borders and a red foreground color.
This property makes it possible to short-circuit the resolution process, so that no other conditional formats are applied after the first condition evaluates to true.
Using the above example, assume StopIfTrue is set to a value of true on the conditional format with red borders, a second conditional format exists with a red foreground color, and a cell value meets both conditions. Because the StopIfTrue setting prevents additional formats from being evaluated, the cell will not show a red foreground color, whereas with StopIfTrue being set to false, it would show both red borders and a red foreground color.
In addition to preventing subsequent conditions from being evaluated, the order in which conditions are evaluated can be controlled using the [[priority]] property.
Sets the [[priority]] value for this rule such that it
is the first condition to be evaluated. Applicable only in the case
where there is more than one element contained within the associated
When multiple
This method ensures that the associated condition is the first one to be evaluated.
To make a condition the last one to be evaluated, use the [[setLastPriority]] method.
Sets the [[priority]] value for this rule such that it is the last condition to be evaluated. Applicable only in the case where there is more than one element contained within the associated [[ConditionalFormatCollection]].
Just as the [[setFirstPriority]] method ensures that the associated condition is evalulated first, the SetLastPriority method ensures that the associated condition is evaluated last.
Calling this method on more than one condition essentially replaces the previously designated condition as the last one to be evaluated with this one.
Assigns the specified System.DateTime value to the [[operand1]] property.
The System.DateTime value to assign.
Assigns the specified System.Double value to the [[operand1]] property.
The System.Double value to assign.
Assigns the specified System.String value to the [[operand1]] property.
The System.String value to assign.
Assigns a [[Formula]] to the [[operand1]] property.
Note that the value of the 'formula' parameter must begin with an equals sign (=).
The string representation of the [[Formula]] to be assigned to the [[operand1]] property.
A [[CellReferenceMode]] value which specifies whether the 'formula' parameter should be interpreted as an A1 or R1C1 expression. This parameter is optional and defaults to null, in which case the [[Workbook.cellReferenceMode]] property is used.
Assigns the specified System.DateTime value to the [[operand2]] property.
The System.DateTime value to assign.
Assigns the specified System.Double value to the [[operand2]] property.
The System.Double value to assign.
Assigns the specified System.String value to the [[operand2]] property.
The System.String value to assign.
Assigns a [[Formula]] to the [[operand2]] property.
Note that the value of the 'formula' parameter must begin with an equals sign (=).
The string representation of the [[Formula]] to be assigned to the [[operand2]] property.
A [[CellReferenceMode]] value which specifies whether the 'formula' parameter should be interpreted as an A1 or R1C1 expression. This parameter is optional and defaults to null, in which case the [[Workbook.cellReferenceMode]] property is used.
Replaces the existing regions with new ones
[[ArgumentException]] If regionAddress is invalid or contains a region from another worksheet
A string with one or more comma separated region address
An optional cell reference mode
Static
compareStatic
compareStatic
equalsStatic
equalsStatic
getStatic
getStatic
getStatic
referenceStatic
static
Exposes properties which control the visual attributes of a [[WorksheetCell]] based on whether the cell's value meets the criteria defined by a logical operator.
See