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

> 檢視 Aspose.Slides for Java 的公開 API 更新與破壞性變更，以順利遷移您的 PowerPoint PPT、PPTX 以及 ODP 簡報解決方案。

Source: https://docs.aspose.com/slides/zh-hant/java/public-api-and-backwards-incompatible-changes-in-aspose-slides-for-java-16-1-0/


{{% alert color="primary" %}} 
此頁面列出所有[已新增](/slides/zh-hant/java/public-api-and-backwards-incompatible-changes-in-aspose-slides-for-java-16-1-0/)或[已移除](/slides/zh-hant/java/public-api-and-backwards-incompatible-changes-in-aspose-slides-for-java-16-1-0/)的類別、方法、屬性等，並說明隨 Aspose.Slides for Java 16.1.0 API 引入的其他變更。
{{% /alert %}} 
## **公開 API 變更**

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

``` java



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);


```
