Package com.grapecity.documents.excel
Enum Class HorizontalAlignment
- All Implemented Interfaces:
Serializable,Comparable<HorizontalAlignment>,Constable
指定单元格或对象的水平对齐方式。
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription指定文本应居中对齐。指定水平对齐方式在多个单元格中居中。关于需要跨越多少个单元格的信息在单元格所在行的sheet部分表达。对于在对其中被跨越的每个单元格,需要写入一个单元格元素,具有引用居中连续对齐的相同样式Id。指定文本应换行并对齐,以形成左右直边,包括最后一行。指定文本将被重复以填充单元格。指定文本左对齐,数字(包括日期和时间)右对齐,逻辑值居中对齐。指定文本应换行并对齐,以形成左侧和右侧的直边,但最后一行保持左对齐。指定左对齐。指定右对齐。 -
Method Summary
Modifier and TypeMethodDescriptionstatic HorizontalAlignmentReturns the enum constant of this class with the specified name.static HorizontalAlignment[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
General
指定文本左对齐,数字(包括日期和时间)右对齐,逻辑值居中对齐。 -
Left
指定左对齐。 -
Center
指定文本应居中对齐。 -
Right
指定右对齐。 -
Fill
指定文本将被重复以填充单元格。 -
Justify
指定文本应换行并对齐,以形成左侧和右侧的直边,但最后一行保持左对齐。 -
CenterContinuous
指定水平对齐方式在多个单元格中居中。关于需要跨越多少个单元格的信息在单元格所在行的sheet部分表达。对于在对其中被跨越的每个单元格,需要写入一个单元格元素,具有引用居中连续对齐的相同样式Id。 -
Distributed
指定文本应换行并对齐,以形成左右直边,包括最后一行。
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-