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

公共 API 与向后不兼容的更改

添加 Aspose.Slides.ShapeThumbnailBounds 枚举和 Aspose.Slides.IShape.GetThumbnail() 方法

GetThumbnail() 方法和 GetThumbnail(ShapeThumbnailBounds bounds, float scaleX, float scaleY) 方法用于创建单独的形状缩略图。ShapeThumbnailBounds 枚举定义了可能的形状缩略图边界类型。

在 Aspose.Slides.IShape 中添加 UniqueId 属性

Aspose.Slides.IShape.UniqueId 属性获取在演示文稿范围内唯一的形状标识符。这些唯一标识符存储在形状的自定义标签中。

IChartCategoryLevelsManager 中 SetGroupingItem 方法签名已更改

IChartCategoryLevelsManager 方法的签名

void SetGroupingItem(int level, IChartDataCell value);

已废弃,并替换为签名

void SetGroupingItem(int level, object value);

现在诸如

.SetGroupingItem(1, workbook.GetCell(0, "A2", "Group 1"));

的调用必须改为

.SetGroupingItem(1, "Group 1");

向 SetGroupingItem 传入类似 “Group 1” 的字符串,而不是 IChartDataCell 类型的值。使用已定义工作表、行和列来构造 IChartDataCell 以用于类别层级的需求已被封装到 SetGroupingItem(int, object) 方法中。

在 Aspose.Slides.IBaseSlide 接口中添加 SlideId 属性

SlideId 属性获取唯一的幻灯片标识符。

在 ISlideShowTransition 中添加 SoundName 属性

可读写的字符串。指定过渡声音的人类可读名称。必须先为 Sound 属性赋值后才能获取或设置声音名称。该名称在 PowerPoint 用户界面手动配置过渡声音时显示。如果未为 Sound 属性赋值,可能会抛出 PptxException。

ChartSeriesGroup.Type 属性的类型已更改

ChartSeriesGroup.Type 属性已从 ChartType 枚举更改为新的 CombinableSeriesTypesGroup 枚举。CombinableSeriesTypesGroup 枚举表示可组合系列类型的组。

添加对生成单个形状缩略图的支持

Aspose.Slides.ShapeThumbnailBounds

Aspose.Slides.IShape、Aspose.Slides.Shape 中的新成员: public Bitmap GetThumbnail() public Bitmap GetThumbnail(ShapeThumbnailBounds bounds, float scaleX, float scaleY)