Aspose.Slides for Android via Java 23.6 Release Notes

SLIDESANDROID-433Use Aspose.Slides for Java 23.6 featuresEnhancement

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();
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
} finally {
    if (pres != null) pres.dispose();