API Pública e Alterações Incompatíveis com Versões Anteriores no Aspose.Slides para Java 16.1.0

Alterações da API Pública

Métodos getRotationAngle() e setRotationAngle() foram adicionados às interfaces IChartTextBlockFormat e ITextFrameFormat

Os métodos getRotationAngle() e setRotationAngle() foram adicionados às interfaces com.aspose.slides.IChartTextBlockFormat e com.aspose.slides.ITextFrameFormat. Eles permitem o acesso à rotação personalizada que está sendo aplicada ao texto dentro da caixa delimitadora.




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