[]
Serializable, Comparable<FormatConditionType>, Constable使用此枚举可以指示条件格式的计算或显示方式,例如单元格值规则、表达式规则、色阶、数据条、前 10 项规则、图标集或其他受支持的条件格式类型。
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()将此值用于使用 FormatConditionOperator 将应用区域中每个单元格的值与一个或两个指定值比较的规则。
将此值用于计算公式表达式以确定是否应用条件格式的规则。
将此值用于向单元格应用颜色渐变的条件格式,以根据定义的阈值指示其值的相对差异。
将此值用于在每个单元格中显示条形的条件格式,以表示该单元格的值相对于应用区域中其他值的大小。
将此值用于根据单元格值和阈值条件显示图标的条件格式。
将此值用于条件格式,将应用区域中的每个数值单元格与该区域的平均值比较,并对值高于平均值的单元格应用格式。
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