[]
Serializable, Comparable<ConditionValueTypes>, Constable使用此枚举可以定义在数据条、色阶和图标集等条件格式规则中如何确定阈值。根据所选值,阈值可以基于固定数字、百分比、百分点、公式或区域中的最低值或最高值。
worksheet.getRange("A1:A5").setValue(new Object[] {10, 30, 50, 70, 90});
IColorScale colorScale = worksheet.getRange("A1:A5")
.getFormatConditions().addColorScale(ColorScaleType.TwoColorScale);
colorScale.getColorScaleCriteria().get(0).setType(ConditionValueTypes.LowestValue);
colorScale.getColorScaleCriteria().get(1).setType(ConditionValueTypes.HighestValue);
Enum.EnumDesc<E extends Enum<E>>static ConditionValueTypesstatic ConditionValueTypes[]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