Aspose.Cells 8.2.2中的公共API更改

添加的 API

为BuiltInDocumentPropertyCollection类添加了Version属性

已经在BuiltInDocumentPropertyCollection类中添加了新属性Version,以允许开发人员获取或设置给定电子表格的应用程序版本。

Java

 Workbook book = new Workbook("sample.xlsx");

BuiltInDocumentPropertyCollection properties = book.getBuiltInDocumentProperties();

System.out.println(properties.getVersion());

添加了Chart.Worksheet属性

在Aspose.Cells 8.2.2发布之前,无法从Chart对象中检索包含的Worksheet实例。Aspose.Cells 8.2.2通过提供Chart.Worksheet属性填补了这一空白。

Java

 Workbook workbook = new Workbook("sample.xlsx");

Chart chart  = workbook.getWorksheets().get(0).getCharts().get(0);

Worksheet  worksheet = chart.getWorksheet();

System.out.println("Chart's Sheet Name: " + worksheet.getName());