[]
        
(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>
Specifies whether a unique values conditional formatting rule evaluates unique values or duplicate values.

This enumeration is used by IUniqueValues to control whether the rule highlights values that appear only once in the specified range or values that are repeated.


 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
      Displays unique values.
    • Duplicate

      public static final DupeUnique Duplicate
      Displays duplicate values.
  • 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