Genel API Aspose.Cells 8.0.2'deki değişiklikler

Shape Sınıfına TextDirection Özelliği Eklendi

Shape sınıfı, Shape nesnesi için metin akışının yönünü almak veya ayarlamak için kullanılabilen TextDirection özelliğine sahiptir. TextDirection özelliği, aşağıda gösterildiği gibi bir elektronik tablodaki yorumlar için istenen metin yönünü ayarlamak için de kullanılabilir.

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");

HTMLLoadOptions Sınıfına ConvertFormulasData Özelliği eklendi

Geliştiricilerin HTML dosyalarından Excel formüllerini yüklemelerini kolaylaştırmak için HTMLLoadOptions Sınıfına ConvertFormulasData özelliği eklenmiştir. Boolean ConvertFormulasData özelliği, dize değeri ‘=’ karakteriyle başladığında dizenin bir formüle dönüştürülüp dönüştürülmeyeceğini belirtir.

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);

HtmlSaveOptions Sınıfına ImageOptions Özelliği eklendi

HtmlSaveOptions Sınıfına ImageOptions özelliği eklendi. ImageOptions özelliğinin gösterilmesi, geliştiricilerin e-tabloları dışa aktarırken HTML’e katıştırılmış resimler için tercihleri belirlemesine olanak sağlamıştır.

Eski HtmlSaveOptions.ExportChartImageFormat Özellik

HtmlSaveOptions.ExportChartImageFormat, Aspose.Cells for .NET 8.0.2’den başlayarak geçersiz olarak işaretlendi. Elektronik tabloları HTML formatına dışa aktarırken resim formatı ayarları yerine HtmlSaveOptions.ImageOptions kullanılması tavsiye edilir.