[]
        
立即试用
(Showing Draft Content)

CellTypeTextAlign

Enum Class CellTypeTextAlign

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

public enum CellTypeTextAlign extends Enum<CellTypeTextAlign>
指定复选框/单选列表单元格的文本对齐方式。
  • Enum Constant Details

    • Left

      public static final CellTypeTextAlign Left
      指定文本位于复选框/单选列表的左侧。
  • Method Details

    • values

      public static CellTypeTextAlign[] 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 CellTypeTextAlign 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()
      获取表示枚举常量的整数值。
      Returns:
      枚举常量的序数值。
    • getCellTypeTextAlign

      public static CellTypeTextAlign getCellTypeTextAlign(int value)
      返回复选框/单选列表单元格的文本对齐方式。@param value 表示文本对齐方式的整数值。
      Returns:
      与指定值相关联的CellTypeTextAlign枚举常量,如果没有找到匹配项则返回null。