Aspose.Slides for .NET 15.2.0 的公共 API 与向后不兼容的更改
Contents
[
Hide
]
公共 API 更改
已添加 AddDataPointForDoughnutSeries 方法
已添加 IChartDataPointCollection.AddDataPointForDoughnutSeries() 方法的两个重载,用于向环形图系列中添加数据点。
Aspose.Slides.SmartArt.SmartArtShape 类已从 Aspose.Slides.GeometryShape 类继承
Aspose.Slides.SmartArt.SmartArtShape 类已从 Aspose.Slides.GeometryShape 类继承。此更改改进了 Aspose.Slides 对象模型并为 SmartArtShape 类添加了新功能。
已添加通过索引删除图表数据点和图表类别的方法
已添加 IChartDataPointCollection.RemoveAt(int index) 方法用于通过索引删除图表数据点。已添加 IChartCategoryCollection.RemoveAt(int index) 方法用于通过索引删除图表类别。
已向 Aspose.Slides.Animation.PropertyType 枚举添加 PptXPptY 值
已向 Aspose.Slides.Animation.PropertyType 枚举添加 PptXPptY 值,以修复序列化问题。
已向 Aspose.Slides.Charts.IChartSeries 添加 System.Drawing.Color GetAutomaticSeriesColor() 方法
GetAutomaticSeriesColor 方法根据系列索引和图表样式返回系列的自动颜色。如果 FillType 等于 NotDefined,则默认使用该颜色。
using (Presentation pres = new Presentation())
{
IChart chart = pres.Slides[0].Shapes.AddChart(ChartType.ClusteredColumn, 100, 50, 600, 400);
for (int i = 0; i < chart.ChartData.Series.Count; i++)
{
chart.ChartData.Series[i].GetAutomaticSeriesColor();
}
}