[]
Serializable, Comparable<TextAlignmentAnchor>, ConstableUse this enum with ITextRange.setTextAlignment(TextAlignmentAnchor) to control how text is aligned inside a shape's text range.
IShape shape = worksheet.getShapes().addShape(AutoShapeType.Rectangle, worksheet.getRange("B1:D3"));
ITextRange textRange = shape.getTextFrame().getTextRange();
textRange.add("Sales Report");
textRange.setTextAlignment(TextAlignmentAnchor.Center);
Enum.EnumDesc<E extends Enum<E>>static TextAlignmentAnchorstatic TextAlignmentAnchor[]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