hello, I have two question about fitTextToShape in cell of table
1. when i use
table.getCell(0, 0).getTextFrame().setText("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
table.getCell(0, 0).getTextFrame().setWrapText(true);
table.getCell(0, 0).getTextFrame().fitTextToShape();
the fitTextToShape does not work. the row height changed.
i want row height is fixed, and the words in cell change the fontsize automaticly.
any advice?
2 when i add
table.getCell(0, 0).getTextFrame().setHeight(240);
like
table.getCell(0, 0).getTextFrame().setHeight(240);
table.getCell(0, 0).getTextFrame().setText("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
table.getCell(0, 0).getTextFrame().setWrapText(true);
table.getCell(0, 0).getTextFrame().fitTextToShape();
the fitTextToShape works , but the table shape has been changed to a text shape...
sample source and the template ppt file is in Attachment
thanks
PS: i use the aspose.slides-2.8.1.jar
please let me konw if my question is unclear.