Theme

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.ITheme, com.aspose.slides.IStyleColorOwner, com.aspose.slides.IPVIObject

public abstract class Theme implements ITheme, IStyleColorOwner, IPVIObject

Represents a theme.

Methods

MethodDescription
getColorScheme()Returns the color scheme.
getFontScheme()Returns the font scheme.
getFormatScheme()Returns the shape format scheme.
getPresentation()Returns the parent presentation.
getEffective()Gets effective theme data with the inheritance applied.
getParent_Immediate()
getParent_IPresentationComponent()
getVersion()

getColorScheme()

public abstract IColorScheme getColorScheme()

Returns the color scheme. Read-only IColorScheme.

Returns: IColorScheme

getFontScheme()

public abstract IFontScheme getFontScheme()

Returns the font scheme. Read-only IFontScheme.

Returns: IFontScheme

getFormatScheme()

public abstract IFormatScheme getFormatScheme()

Returns the shape format scheme. Read-only IFormatScheme.

Returns: IFormatScheme

getPresentation()

public final IPresentation getPresentation()

Returns the parent presentation. Read-only IPresentation.

Returns: IPresentation

getEffective()

public final IThemeEffectiveData getEffective()

Gets effective theme data with the inheritance applied.


This example demonstrates getting effective theme properties.
 
 Presentation pres = new Presentation("MyPresentation.pptx");
 try
 {
 	IThemeEffectiveData effectiveTheme  = pres.getSlides().get_Item(0).getThemeManager().getOverrideTheme().getEffective();
 	System.out.println("Font scheme name: " + effectiveTheme.getFontScheme().getName());
 	System.out.println("Major latin font: " + effectiveTheme.getFontScheme().getMajor().getLatinFont().getFontName());
 	System.out.println("Minor latin font: " + effectiveTheme.getFontScheme().getMinor().getLatinFont().getFontName());
 } finally {
  if (pres != null) pres.dispose();
 }

Returns: IThemeEffectiveData - A IThemeEffectiveData.

getParent_Immediate()

public final IDOMObject getParent_Immediate()

Returns Parent_Immediate object. Read-only IDOMObject.

Returns: com.aspose.slides.IDOMObject

getParent_IPresentationComponent()

public final IPresentationComponent getParent_IPresentationComponent()

Returns parent IPresentationComponent. Read-only IPresentationComponent.

Returns: IPresentationComponent

getVersion()

public abstract long getVersion()

Version. Read-only long.

Returns: long