API công khai và các thay đổi không tương thích ngược trong Aspose.Slides for Java 16.1.0
Contents
[
Hide
]
Trang này liệt kê tất cả các lớp, phương thức, thuộc tính và các thành phần khác đã thêm hoặc đã xóa, và các thay đổi khác được giới thiệu trong API Aspose.Slides for Java 16.1.0.
Thay đổi API công khai
Các phương thức getRotationAngle() và setRotationAngle() đã được thêm vào các giao diện IChartTextBlockFormat và ITextFrameFormat
Các phương thức getRotationAngle() và setRotationAngle() đã được thêm vào các giao diện com.aspose.slides.IChartTextBlockFormat và com.aspose.slides.ITextFrameFormat. Chúng cung cấp quyền truy cập vào góc xoay tùy chỉnh được áp dụng cho văn bản trong khung bao.
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);