[]
Serializable, Comparable<HorizontalAnchor>, ConstableUse this enum with ITextFrame.setHorizontalAnchor(HorizontalAnchor) to control how a shape's text frame is positioned horizontally within the shape. To control the horizontal alignment of the text itself, use ITextRange.setTextAlignment(TextAlignmentAnchor) instead.
IShape shape = worksheet.getShapes().addShape(AutoShapeType.Rectangle, 10, 10, 120, 60);
ITextFrame textFrame = shape.getTextFrame();
textFrame.getTextRange().setText("Hello");
textFrame.setHorizontalAnchor(HorizontalAnchor.Center);
Enum.EnumDesc<E extends Enum<E>>static HorizontalAnchorforValue(int value) intgetValue()static HorizontalAnchorstatic HorizontalAnchor[]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