[]
        
立即试用
(Showing Draft Content)

HorizontalAlignment

Enum Class HorizontalAlignment

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

public enum HorizontalAlignment extends Enum<HorizontalAlignment>
指定单元格或对象的水平对齐方式。
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    指定文本应居中对齐。
    指定水平对齐方式在多个单元格中居中。关于需要跨越多少个单元格的信息在单元格所在行的sheet部分表达。对于在对其中被跨越的每个单元格,需要写入一个单元格元素,具有引用居中连续对齐的相同样式Id。
    指定文本应换行并对齐,以形成左右直边,包括最后一行。
    指定文本将被重复以填充单元格。
    指定文本左对齐,数字(包括日期和时间)右对齐,逻辑值居中对齐。
    指定文本应换行并对齐,以形成左侧和右侧的直边,但最后一行保持左对齐。
    指定左对齐。
    指定右对齐。
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • General

      public static final HorizontalAlignment General
      指定文本左对齐,数字(包括日期和时间)右对齐,逻辑值居中对齐。
    • Left

      public static final HorizontalAlignment Left
      指定左对齐。
    • Center

      public static final HorizontalAlignment Center
      指定文本应居中对齐。
    • Fill

      public static final HorizontalAlignment Fill
      指定文本将被重复以填充单元格。
    • Justify

      public static final HorizontalAlignment Justify
      指定文本应换行并对齐,以形成左侧和右侧的直边,但最后一行保持左对齐。
    • CenterContinuous

      public static final HorizontalAlignment CenterContinuous
      指定水平对齐方式在多个单元格中居中。关于需要跨越多少个单元格的信息在单元格所在行的sheet部分表达。对于在对其中被跨越的每个单元格,需要写入一个单元格元素,具有引用居中连续对齐的相同样式Id。
    • Distributed

      public static final HorizontalAlignment Distributed
      指定文本应换行并对齐,以形成左右直边,包括最后一行。
  • Method Details

    • values

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