Aspose.Slides for Java 16.1.0 的公開 API 與不相容變更

公開 API 變更

已將方法 getRotationAngle() 與 setRotationAngle() 新增至 IChartTextBlockFormat 與 ITextFrameFormat 介面

已將方法 getRotationAngle() 與 setRotationAngle() 新增至介面 com.aspose.slides.IChartTextBlockFormat 與 com.aspose.slides.ITextFrameFormat。它們提供對套用於文字所在邊界框之自訂旋轉的存取。




Presentation pres = new Presentation();

IChart chart = pres.getSlides().get_Item(0).getShapes().addChart(ChartType.ClusteredColumn, 50, 50, 500, 300);

IChartSeries series = chart.getChartData().getSeries().get_Item(0);

series.getLabels().getDefaultDataLabelFormat().setShowValue (true);

series.getLabels().getDefaultDataLabelFormat().getTextFormat ().getTextBlockFormat().setRotationAngle(65);

chart.setTitle(true);

chart.getChartTitle().addTextFrameForOverriding("Custom title").getTextFrameFormat().setRotationAngle(-30);

pres.save("out.pptx", SaveFormat.Pptx);