[]
Serializable, Comparable<DupeUnique>, Constable此枚举由 IUniqueValues 使用,以控制该规则是突出显示在指定范围内仅出现一次的值,还是重复出现的值。
worksheet.getRange("A1:A5").setValue(new Object[][] {
{1}, {2}, {1}, {3}, {4}
});
IUniqueValues condition = worksheet.getRange("A1:A5").getFormatConditions().addUniqueValues();
condition.getInterior().setColor(Color.GetYellow());
condition.setDupeUnique(DupeUnique.Unique);
Enum.EnumDesc<E extends Enum<E>>static DupeUniquestatic DupeUnique[]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