/** * Sets if the paragraphs are horizontal centered * * @param isCentered true, if the paragraphs are horizontal centered A {@code null} values unsets * this property. * @see TextShape#isHorizontalCentered() */ public void setHorizontalCentered(Boolean isCentered) { CTTextBodyProperties bodyPr = getTextBodyPr(); if (bodyPr != null) { if (isCentered == null) { if (bodyPr.isSetAnchorCtr()) bodyPr.unsetAnchorCtr(); } else { bodyPr.setAnchorCtr(isCentered); } } }