public abstract class Theme extends java.lang.Object implements ITheme
Represents a theme.
Modifier and Type | Method and Description |
---|---|
abstract IColorScheme |
getColorScheme()
Returns the color scheme.
|
IThemeEffectiveData |
getEffective()
Gets effective theme data with the inheritance applied.
|
abstract IFontScheme |
getFontScheme()
Returns the font scheme.
|
abstract IFormatScheme |
getFormatScheme()
Returns the shape format scheme.
|
com.aspose.slides.IDOMObject |
getParent_Immediate()
Returns Parent_Immediate object.
|
IPresentationComponent |
getParent_IPresentationComponent()
Returns parent IPresentationComponent.
|
IPresentation |
getPresentation()
Returns the parent presentation.
|
abstract long |
getVersion()
Version.
|
public abstract IColorScheme getColorScheme()
Returns the color scheme.
Read-only IColorScheme
.
getColorScheme
in interface ITheme
public abstract IFontScheme getFontScheme()
Returns the font scheme.
Read-only IFontScheme
.
getFontScheme
in interface ITheme
public abstract IFormatScheme getFormatScheme()
Returns the shape format scheme.
Read-only IFormatScheme
.
getFormatScheme
in interface ITheme
public final IPresentation getPresentation()
Returns the parent presentation.
Read-only IPresentation
.
getPresentation
in interface IPresentationComponent
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(); }
getEffective
in interface ITheme
IThemeEffectiveData
.public final com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject
.
public final IPresentationComponent getParent_IPresentationComponent()
Returns parent IPresentationComponent.
Read-only IPresentationComponent
.
public abstract long getVersion()
Version.
Read-only long
.