[]
        
立即试用
(Showing Draft Content)

LabelAlignment

Enum Class LabelAlignment

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

public enum LabelAlignment extends Enum<LabelAlignment>
指定单元格标签位置。
  • Enum Constant Details

    • topLeft

      public static final LabelAlignment topLeft
      表示单元格标签位置为左上角。
    • topCenter

      public static final LabelAlignment topCenter
      表示单元格标签位置为顶部居中。
    • topRight

      public static final LabelAlignment topRight
      表示单元格标签位置为右上角。
    • bottomLeft

      public static final LabelAlignment bottomLeft
      表示单元格标签位置为左下。
    • bottomCenter

      public static final LabelAlignment bottomCenter
      表示单元格标签位置为底部居中。
    • bottomRight

      public static final LabelAlignment bottomRight
      表示单元格标签位置在右下角。
  • Method Details

    • values

      public static LabelAlignment[] 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 LabelAlignment 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()
    • getLabelAlignment

      public static LabelAlignment getLabelAlignment(int value)
      返回与指定整数值相关联的标签位置。
      Parameters:
      value - 表示标签位置的整数值。
      Returns:
      与指定值相关联的LabelAlignment枚举常量,如果没有找到匹配项则返回null。