[]
Serializable, Comparable<FormatConditionOperator>, ConstableBetween 和 NotBetween,则用于比较两个公式。将此枚举与单元格值条件格式规则一起使用,以定义条件的计算方式。Between 和 NotBetween 需要两个公式参数,而其他运算符使用单个比较值。
worksheet.getRange("A1:A5").setValue(new Object[][] {
{80}, {95}, {110}, {140}, {180}
});
IFormatCondition condition = (IFormatCondition) worksheet.getRange("A1:A5")
.getFormatConditions()
.add(FormatConditionType.CellValue, FormatConditionOperator.Between, 100, 150);
condition.setNumberFormat("0");
Enum.EnumDesc<E extends Enum<E>>static FormatConditionOperatorstatic FormatConditionOperator[]values()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