การเปลี่ยนแปลง Public API และการไม่เข้ากันย้อนหลังใน Aspose.Slides for Java 16.1.0
Contents
[
Hide
]
หน้านี้แสดงรายการทั้งหมดของคลาส, เมธอด, คุณสมบัติ ฯลฯ ที่ถูก เพิ่ม หรือ ลบ และการเปลี่ยนแปลงอื่น ๆ ที่แนะนำใน Aspose.Slides for Java 16.1.0 API.
การเปลี่ยนแปลง Public 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);