[]
Serializable, Comparable<LabelAlignment>, ConstableUse this enum with ILabelOptions.setAlignment(LabelAlignment) to place a cell label at the top or bottom of the cell area, aligned to the left, center, or right.
IRange range = worksheet.getRange("A1");
range.setCellPadding(new CellPadding(10,0, 0,0));
range.setWatermark("Student Name");
range.getLabelOptions().getFont().setSize(7);
range.getLabelOptions().setAlignment(LabelAlignment.topCenter);
Enum.EnumDesc<E extends Enum<E>>static LabelAlignmentgetLabelAlignment(int value) intgetValue()static LabelAlignmentstatic LabelAlignment[]values()name - the name of the enum constant to be returned.IllegalArgumentException - if this enum class has no constant with the specified nameNullPointerException - if the argument is nullUse this method to convert a stored or serialized label alignment value to its corresponding LabelAlignment enum constant.
worksheet.getRange("A1").setWatermark("Student Name");
int alignmentValue = 4;
LabelAlignment alignment = LabelAlignment.getLabelAlignment(alignmentValue);
worksheet.getRange("A1").getLabelOptions().setAlignment(alignment);
value - The integer value representing the label position.LabelAlignment enum constant associated with the specified value, or null if no match is found.