[]
Serializable, Comparable<HorizontalAlignment>, ConstableUse this enum with APIs such as IRange.setHorizontalAlignment(HorizontalAlignment) and IStyle.setHorizontalAlignment(HorizontalAlignment) to control how text is aligned within a cell, range, or styled object. Available values support general alignment, explicit left, center, and right alignment, repeated fill text, justified text, distributed text, and centered text across multiple cells.
IRange range = worksheet.getRange("A1:C1");
range.setValue("Quarterly Report");
range.setHorizontalAlignment(HorizontalAlignment.Center);
Enum.EnumDesc<E extends Enum<E>>static HorizontalAlignmentstatic HorizontalAlignment[]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 null