Browse our Products
Aspose.Slides for Android via Java 23.6 Release Notes
This page contains release notes for Aspose.Slides for Android via Java 23.6
Key | Summary | Category |
---|---|---|
SLIDESANDROID-433 | Use Aspose.Slides for Java 23.6 features | Enhancement |
Public API Changes
ILoadOptions.setDefaultTextLanguage and ILoadOptions.getDefaultTextLanguage methods have been added
New setDefaultTextLanguage() and getDefaultTextLanguage() methods have been added to ILoadOptions interface and LoadOptions class. It represents the default language for presentation text.
The example below demonstrates using load options to define the default text culture:
// Use load options to define the default text culture
LoadOptions loadOptions = new LoadOptions();
loadOptions.setDefaultTextLanguage("en-US");
Presentation pres = new Presentation(loadOptions);
try {
// Add new rectangle shape with text
IAutoShape shp = pres.getSlides().get_Item(0).getShapes().addAutoShape(ShapeType.Rectangle, 50, 50, 150, 50);
shp.getTextFrame().setText("New Text");
// Check the first portion language
System.out.println(shp.getTextFrame().getParagraphs().get_Item(0).getPortions().get_Item(0).getPortionFormat().getLanguageId());
} finally {
if (pres != null) pres.dispose();
}