Público API Cambios en Aspose.Cells 8.0.2

Se agregó la propiedad TextDirection a la clase de forma

La clase Shape ha expuesto la propiedad TextDirection que se puede usar para obtener o establecer la dirección del flujo de texto para el objeto Shape. La propiedad TextDirection también se puede usar para establecer la dirección de texto deseada para los comentarios en una hoja de cálculo, como se muestra a continuación.

Java

 //Instantiate a new Workbook

Workbook book = new Workbook();

//Get the first worksheet

Worksheet sheet = book.getWorksheets().get(0);

//Adding a comment to "F5" cell

int commentIndex = sheet.getComments().add("F5");

Comment comment = sheet.getComments().get(commentIndex);

//Set its vertical alignment setting            

comment.getCommentShape().setTextVerticalAlignment(TextAlignmentType.CENTER);

//Set its horizontal alignment setting

comment.getCommentShape().setTextHorizontalAlignment(TextAlignmentType.RIGHT);

//Set the Text Direction - Right-to-Left

comment.getCommentShape().setTextDirection(TextDirectionType.RIGHT_TO_LEFT);

//Set the Comment note

comment.setNote("This is my Comment Text. This is test");

//Save the Excel file

book.save(myDir + "output.xlsx");

Se agregó la propiedad ConvertFormulasData a la clase HTMLLoadOptions

La propiedad ConvertFormulasData se ha agregado a la clase HTMLLoadOptions para facilitar a los desarrolladores la carga de fórmulas de Excel desde archivos HTML. La propiedad booleana ConvertFormulasData indica si se convierte o no la cadena en una fórmula cuando el valor de la cadena comienza con el carácter ‘=’.

Java

 //Create an instance of HTMLLoadOptions

HTMLLoadOptions loadOptions = new HTMLLoadOptions();

//Set ConvertFormulasData to true

loadOptions.setConvertFormulasData(true);

//Create an instance of Workbook and load an HTML based spreadsheet 

//while passing the instance of HTMLLoadOptions

Workbook workbook = new Workbook(myDir + "spreadsheet.html", loadOptions);

Se agregó la propiedad ImageOptions a la clase HtmlSaveOptions

La propiedad ImageOptions se ha agregado a la clase HtmlSaveOptions. Exponer la propiedad ImageOptions ha permitido a los desarrolladores establecer las preferencias para las imágenes incrustadas en el HTML al exportar hojas de cálculo.

Propiedad HtmlSaveOptions.ExportChartImageFormat obsoleta

HtmlSaveOptions.ExportChartImageFormat se marcó como obsoleto a partir de Aspose.Cells for .NET 8.0.2. Se recomienda utilizar HtmlSaveOptions.ImageOptions en su lugar para la configuración de formato de imagen al exportar hojas de cálculo al formato HTML.