[]
        
立即试用
(Showing Draft Content)

LabelVisibility

Enum Class LabelVisibility

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

public enum LabelVisibility extends Enum<LabelVisibility>
指定单元格标签的可见性。
  • Enum Constant Details

    • visible

      public static final LabelVisibility visible
      指定始终在填充区域显示水印,而不管单元格值如何,不在单元格区域显示水印。
    • hidden

      public static final LabelVisibility hidden
      指定不在填充区域显示水印,而是根据值条件在单元格区域显示水印。
    • auto

      public static final LabelVisibility auto
      指定当单元格有值时在填充区域显示水印,或者在单元格没有值时在单元格区域显示水印。
  • Method Details

    • values

      public static LabelVisibility[] 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 LabelVisibility 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()
    • getLabelVisibility

      public static LabelVisibility getLabelVisibility(int value)
      返回指定整数值对应的标签可见性。
      Parameters:
      value - 表示标签可见性的整数值。
      Returns:
      与指定值相关联的LabelVisibility枚举常量,如果没有找到匹配项则返回null。