[]
Serializable, Comparable<FormatConditionType>, ConstableUse this enumeration to indicate how a conditional format is evaluated or displayed, such as a cell-value rule, expression rule, color scale, data bar, top 10 rule, icon set, or other supported conditional formatting type.
worksheet.getRange("A1:A4").setValue(new Object[][] {
{10},
{20},
{30},
{40}
});
worksheet.getRange("A1:A4").getFormatConditions()
.add(FormatConditionType.CellValue, FormatConditionOperator.Greater, "25", null);
Enum.EnumDesc<E extends Enum<E>>static FormatConditionTypestatic FormatConditionType[]values()Use this value for rules that compare the value of each cell in the applied range against one or two specified values by using a FormatConditionOperator.
Use this value for a rule that evaluates a formula expression to determine whether the conditional formatting is applied.
Use this value for conditional formats that apply a gradient of colors to cells to indicate relative differences in their values based on defined thresholds.
Use this value for conditional formats that display a bar in each cell to represent the cell's value relative to other values in the applied range.
Use this value for conditional formats that display icons based on cell values and threshold criteria.
Use this value for conditional formats that compare each numeric cell in the applied range with the average of that range and apply formatting to cells whose values are above the average.
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum class has no constant with the specified nameNullPointerException - if the argument is null