Aspose.Slides for .NET 14.10.0 的公共 API 及向后不兼容更改
Contents
[
Hide
]
公共 API 更改
Aspose.Slides.FieldType.Footer 字段类型已添加
已添加 Footer 字段类型,以实现创建此类型字段的可能性,并进行有效的演示序列化。
枚举成员 ShapeElementFillSource.Own 已删除
枚举成员 ShapeElementFillSource.Own 因重复而被删除。请使用 ShapeElementFillSource.Shape 替代 ShapeElementFillSource.Own。
已添加用于删除图表数据点、类别的方法
已添加以下方法,可从图表数据点集合中删除图表数据点:
IChartDataPointCollection.Remove(IChartDataPoint)
IChartDataPoint.Report()
已添加以下方法,可从其所在集合中删除图表类别:
IChartCategory.Remove()
using (Presentation pres = new Presentation())
{
IChart chart = pres.Slides[0].Shapes.AddChart(ChartType.ClusteredColumn, 50, 50, 450, 400, true);
chart.ChartData.Categories[0].Remove(); //remove with ChartCategory.Remove()
chart.ChartData.Categories.Remove(chart.ChartData.Categories[0]); //remove with ChartCategoryCollection.Remove()
foreach (var ser in chart.ChartData.Series)
{
ser.DataPoints[0].Remove();//remove with ChartDataPoint.Remove()
ser.DataPoints.Remove(ser.DataPoints[0]);//ChartDataPointCollection.Remove()
}
pres.Save(outPath, SaveFormat.Pptx);
}
已删除过时的 Aspose.Slides.ParagraphFormat 属性
属性 BulletChar、BulletColor、BulletColorFormat、BulletFont、BulletHeight、BulletType、IsBulletHardColor、IsBulletHardFont、NumberedBulletStartWith、NumberedBulletStyle 已被删除。它们很久以前就已标记为过时。
已删除无用且过时的构造函数
已删除以下构造函数:
- Aspose.Slides.Effects.AlphaBiLevel(System.Single)
- Aspose.Slides.Effects.AlphaModulateFixed(System.Single)
- Aspose.Slides.Effects.AlphaReplace(System.Single)
- Aspose.Slides.Effects.BiLevel(System.Single)
- Aspose.Slides.Effects.Blur(System.Double,System.Boolean)
- Aspose.Slides.Effects.HSL(System.Single,System.Single,System.Single)
- Aspose.Slides.Effects.ImageTransformOperation(Aspose.Slides.Effects.ImageTransformOperationCollection)
- Aspose.Slides.Effects.Luminance(System.Single,System.Single)
- Aspose.Slides.Effects.Tint(System.Single,System.Single)
- Aspose.Slides.PortionFormat(Aspose.Slides.ParagraphFormat)
- Aspose.Slides.PortionFormat(Aspose.Slides.Portion)
- Aspose.Slides.PortionFormat(Aspose.Slides.PortionFormat)