Package com.grapecity.documents.excel
Enum Class LabelAlignment
- All Implemented Interfaces:
Serializable,Comparable<LabelAlignment>,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表示单元格标签位置为底部居中。表示单元格标签位置为左下。表示单元格标签位置在右下角。表示单元格标签位置为顶部居中。表示单元格标签位置为左上角。表示单元格标签位置为右上角。 -
Method Summary
Modifier and TypeMethodDescriptionstatic LabelAlignmentgetLabelAlignment(int value) 返回与指定整数值相关联的标签位置。intgetValue()static LabelAlignmentReturns the enum constant of this class with the specified name.static LabelAlignment[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
topLeft
表示单元格标签位置为左上角。 -
topCenter
表示单元格标签位置为顶部居中。 -
topRight
表示单元格标签位置为右上角。 -
bottomLeft
表示单元格标签位置为左下。 -
bottomCenter
表示单元格标签位置为底部居中。 -
bottomRight
表示单元格标签位置在右下角。
-
-
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
-
getValue
public int getValue() -
getLabelAlignment
返回与指定整数值相关联的标签位置。- Parameters:
value- 表示标签位置的整数值。- Returns:
- 与指定值相关联的
LabelAlignment枚举常量,如果没有找到匹配项则返回null。
-