Aspose.Slides for .NET 16.1.0 的公共 API 与向后不兼容的更改

公共 API 更改

属性 RotationAngle 已添加到 IChartTextBlockFormat 和 ITextFrameFormat 接口

已在接口 Aspose.Slides.Charts.IChartTextBlockFormat 和 Aspose.Slides.ITextFrameFormat 中添加属性 RotationAngle。它指定了在边框内对文本应用的自定义旋转。


 using (Presentation pres = new Presentation())

{

IChart chart = pres.Slides[0].Shapes.AddChart(ChartType.ClusteredColumn, 50, 50, 500, 300);

IChartSeries series = chart.ChartData.Series[0];

series.Labels.DefaultDataLabelFormat.ShowValue = true;

series.Labels.DefaultDataLabelFormat.TextFormat.TextBlockFormat.RotationAngle = 65;

chart.HasTitle = true;

chart.ChartTitle.AddTextFrameForOverriding("Custom title").TextFrameFormat.RotationAngle = -30;

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

}


OdpException 已从 Aspose.Slides.Odp 移动到 Aspose.Slides 命名空间