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

IconSetType

Enum Class IconSetType

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

public enum IconSetType extends Enum<IconSetType>
指定图标集条件格式规则中使用的内置图标集类型。

将此枚举与 IIconSets.get(IconSetType) 配合使用,可以从工作簿中检索预定义的 IIconSet 并将其应用于 IIconSetCondition。


 worksheet.getRange("A1:A5").setValue(new Object[] {10, 30, 50, 70, 90});
 IIconSetCondition condition = worksheet.getRange("A1:A5").getFormatConditions().addIconSetCondition();
 IIconSet iconSet = workbook.getIconSets().get(IconSetType.Icon3Symbols);
 condition.setIconSet(iconSet);
 
  • Enum Constant Details

    • CustomSet

      public static final IconSetType CustomSet
      指定图标集条件格式中使用的自定义图标集。
    • Icon3Arrows

      public static final IconSetType Icon3Arrows
      指定条件格式中使用的 3 箭头图标集。
    • Icon3ArrowsGray

      public static final IconSetType Icon3ArrowsGray
      指定条件格式中使用的 3 个灰色箭头图标集。
    • Icon3Flags

      public static final IconSetType Icon3Flags
      指定条件格式中使用的 3 旗帜图标集。
    • Icon3TrafficLights1

      public static final IconSetType Icon3TrafficLights1
      指定图标集条件格式中使用的三交通灯图标集。
    • Icon3TrafficLights2

      public static final IconSetType Icon3TrafficLights2
      指定带黑色矩形边框的三交通灯图标集。
    • Icon3Signs

      public static final IconSetType Icon3Signs
      指定图标集条件格式中使用的三标志图标集。
    • Icon3Symbols

      public static final IconSetType Icon3Symbols
      指定带圆圈符号的三符号图标集。
    • Icon3Symbols2

      public static final IconSetType Icon3Symbols2
      指定3个符号图标集。
    • Icon4Arrows

      public static final IconSetType Icon4Arrows
      指定图标集条件格式中使用的四箭头图标集。
    • Icon4ArrowsGray

      public static final IconSetType Icon4ArrowsGray
      指定4个灰色箭头图标集。
    • Icon4RedToBlack

      public static final IconSetType Icon4RedToBlack
      指定图标集条件格式中使用的四图标红到黑图标集。
    • Icon4CRV

      public static final IconSetType Icon4CRV
      指定了4个评级图标集。
    • Icon4TrafficLights

      public static final IconSetType Icon4TrafficLights
      指定用于图标集条件格式规则的 4 交通灯图标集。
    • Icon5Arrows

      public static final IconSetType Icon5Arrows
      指定图标集条件格式中使用的五箭头图标集。
    • Icon5ArrowsGray

      public static final IconSetType Icon5ArrowsGray
      指定图标集条件格式中使用的五灰色箭头图标集。
    • Icon5CRV

      public static final IconSetType Icon5CRV
      指定图标集条件格式中使用的五图标 CRV 图标集。
    • Icon5Quarters

      public static final IconSetType Icon5Quarters
      指定图标集条件格式中使用的 5 个四分之一图标集。

      此图标集使用四分之一填充的圆形图标来表示五个值级别。

    • Icon3Stars

      public static final IconSetType Icon3Stars
      指定图标集条件格式规则中使用的 3 星图标集。
    • Icon3Triangles

      public static final IconSetType Icon3Triangles
      指定用于条件格式的三个三角形图标集。
    • Icon5Boxes

      public static final IconSetType Icon5Boxes
      指定 5 框图标集。
  • Method Details

    • values

      public static IconSetType[] 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 IconSetType 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
    • getValue

      public int getValue()
    • forValue

      public static IconSetType forValue(int value)