Package ch.rabanti.picoxlsx4j.style
Enum CellXf.HorizontalAlignValue
- java.lang.Object
-
- java.lang.Enum<CellXf.HorizontalAlignValue>
-
- ch.rabanti.picoxlsx4j.style.CellXf.HorizontalAlignValue
-
- All Implemented Interfaces:
Serializable
,Comparable<CellXf.HorizontalAlignValue>
- Enclosing class:
- CellXf
public static enum CellXf.HorizontalAlignValue extends Enum<CellXf.HorizontalAlignValue>
Enum for the horizontal alignment of a cell
-
-
Enum Constant Summary
Enum Constants Enum Constant Description center
Content will be aligned in the centercenterContinuous
Center continuous alignmentdistributed
Distributed alignmentfill
Content will fill up the cellgeneral
General alignmentjustify
justify alignmentleft
Content will be aligned leftnone
No alignment.right
Content will be aligned right
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static CellXf.HorizontalAlignValue
valueOf(String name)
Returns the enum constant of this type with the specified name.static CellXf.HorizontalAlignValue[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
left
public static final CellXf.HorizontalAlignValue left
Content will be aligned left
-
center
public static final CellXf.HorizontalAlignValue center
Content will be aligned in the center
-
right
public static final CellXf.HorizontalAlignValue right
Content will be aligned right
-
fill
public static final CellXf.HorizontalAlignValue fill
Content will fill up the cell
-
justify
public static final CellXf.HorizontalAlignValue justify
justify alignment
-
general
public static final CellXf.HorizontalAlignValue general
General alignment
-
centerContinuous
public static final CellXf.HorizontalAlignValue centerContinuous
Center continuous alignment
-
distributed
public static final CellXf.HorizontalAlignValue distributed
Distributed alignment
-
none
public static final CellXf.HorizontalAlignValue none
No alignment. The alignment will not be used in a style
-
-
Method Detail
-
values
public static CellXf.HorizontalAlignValue[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CellXf.HorizontalAlignValue c : CellXf.HorizontalAlignValue.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CellXf.HorizontalAlignValue valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()
-
-