Free Support Forum - aspose.com

[JAVA] Shape grow with Text

Hello!


If I put a lot of text inside a shape, the shape grows upward and downward. But I want, that the shape only grows downward. Is this possible? maybe any example?

Probably this shape has AnchorText set to AnchorText.MIDDLE or AnchorText.MIDDLE_CENTERED.
You should set it to AnchorText.TOP.

sh.getTextFrame().setAnchorText(AnchorText.TOP);