[]
        
首页
开发者学堂
文档
论坛
市场
生态机会
活动
立即试用
(Showing Draft Content)

DupeUnique

Enum Class DupeUnique

java.lang.Object
java.lang.Enum<DupeUnique>
com.grapecity.documents.excel.DupeUnique
All Implemented Interfaces:
Serializable, Comparable<DupeUnique>, Constable

public enum DupeUnique extends Enum<DupeUnique>
指定唯一值条件格式规则是评估唯一值还是重复值。

此枚举由 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 Constant Details

    • Unique

      public static final DupeUnique Unique
      显示唯一值。
    • Duplicate

      public static final DupeUnique Duplicate
      显示重复的值。
  • Method Details

    • values

      public static DupeUnique[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DupeUnique valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null