[]
        
(Showing Draft Content)

TopBottom

Enum Class TopBottom

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

public enum TopBottom extends Enum<TopBottom>
Specifies whether a top 10 conditional formatting rule evaluates the highest values or the lowest values in a series.

Use this enumeration with ITop10 to control whether ranking is evaluated from the top or from the bottom of the applied range.


 worksheet.getRange("A1:A5").setValue(new Object[][] {{10}, {30}, {20}, {50}, {40}});
 ITop10 top10 = worksheet.getRange("A1:A5").getFormatConditions().addTop10();
 top10.getInterior().setColor(Color.GetYellow());
 top10.setRank(2);
 top10.setTopBottom(TopBottom.Bottom);
 
  • Enum Constant Details

    • Bottom

      public static final TopBottom Bottom
      Specifies the bottom values.
    • Top

      public static final TopBottom Top
      Specifies the top values.
  • Method Details

    • values

      public static TopBottom[] 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 TopBottom 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