[]
Use this class to access themes by name and to create custom themes that can be applied to a workbook. A Themes instance can retrieve built-in themes and custom themes added to the manager.
Themes themes = new Themes();
ITheme theme = themes.get(Themes.GetBerlin().getName());
workbook.setTheme(theme);
final IThemestatic IThemeGetApex()static IThemestatic IThemeGetBadge()static IThemestatic IThemeGetBasis()static IThemestatic IThemestatic IThemestatic IThemeGetCivic()static IThemefinal intgetCount()static IThemeGetCrop()static IThemestatic IThemeGetDepth()static IThemestatic IThemestatic IThemestatic IThemeGetFacet()static IThemestatic IThemeGetFlow()static IThemestatic IThemeGetFrame()static IThemestatic IThemestatic IThemestatic IThemeGetIon()static IThemestatic IThemestatic IThemestatic IThemeGetMesh()static IThemeGetMetro()static IThemestatic IThemestatic IThemestatic IThemestatic IThemestatic IThemestatic IThemeGetOriel()static IThemestatic IThemeGetPaper()static IThemestatic IThemestatic IThemestatic IThemestatic IThemeGetSavon()static IThemeGetSlate()static IThemeGetSlice()static IThemestatic IThemestatic IThemeGetTrek()static IThemeGetUrban()static IThemestatic IThemeGetVerve()static IThemeGetView()static IThemeGetWisp()static IThemeThis method searches built-in themes first and then searches custom themes added to this Themes collection. Theme name matching is case-insensitive, and leading and trailing whitespace in name are ignored.
Themes themes = new Themes();
ITheme theme = themes.get(Themes.GetOfficeTheme().getName());
workbook.setTheme(theme);
name - The theme name to search for. Must not be null; leading and trailing whitespace is ignored.ITheme, or null if no built-in or custom theme matches the specified name.NullPointerException - if name is null.If baseTheme is null, the new theme is created from the Office theme. If themeName is null or empty, a unique custom theme name is generated automatically.
Themes themes = new Themes();
ITheme baseTheme = Themes.GetBadge();
ITheme customTheme = themes.add("Custom Badge", baseTheme);
workbook.setTheme(customTheme);
themeName - The name of the new theme. If null or empty, a unique name is generated. If non-empty, it must not match a built-in or existing custom theme name ignoring case.baseTheme - The theme to copy as the base for the new theme. If null, the Office theme is used.ITheme.IllegalArgumentException - if themeName is non-empty and is not a valid theme name.This method forwards to add(String,ITheme) with null as the base theme, so the new theme is created from the Office theme and added to this Themes collection.
Themes themes = new Themes();
ITheme theme = themes.add("Custom Theme");
workbook.setTheme(theme);
themeName - The name of the new theme. If null or empty, a custom theme name is generated automatically. If non-empty, the name must be valid.ITheme.IllegalArgumentException - if themeName is non-empty and is not a valid theme name.The returned value includes both the built-in themes and any custom themes added to the collection.
Themes themes = new Themes();
themes.add("Custom Theme");
int count = themes.getCount();
ITheme theme = Themes.GetOfficeTheme();
workbook.setTheme(theme);
ITheme theme = Themes.GetBadge();
workbook.setTheme(theme);
ITheme theme = Themes.GetBanded();
workbook.setTheme(theme);
ITheme theme = Themes.GetBasis();
workbook.setTheme(theme);
ITheme theme = Themes.GetBerlin();
workbook.setTheme(theme);
ITheme theme = Themes.GetCelestial();
workbook.setTheme(theme);
ITheme theme = Themes.GetCircuit();
workbook.setTheme(theme);
ITheme theme = Themes.GetCrop();
workbook.setTheme(theme);
ITheme theme = Themes.GetDamask();
workbook.setTheme(theme);
ITheme theme = Themes.GetDepth();
workbook.setTheme(theme);
ITheme theme = Themes.GetDividend();
workbook.setTheme(theme);
ITheme theme = Themes.GetDroplet();
workbook.setTheme(theme);
ITheme theme = Themes.GetFacet();
workbook.setTheme(theme);
ITheme theme = Themes.GetFeathered();
workbook.setTheme(theme);
ITheme theme = Themes.GetFrame();
workbook.setTheme(theme);
ITheme theme = Themes.GetGallery();
workbook.setTheme(theme);
ITheme theme = Themes.GetHeadlines();
workbook.setTheme(theme);
ITheme theme = Themes.GetIntegral();
workbook.setTheme(theme);
ITheme theme = Themes.GetIonBoardroom();
workbook.setTheme(theme);
ITheme theme = Themes.GetIon();
workbook.setTheme(theme);
ITheme theme = Themes.GetMainEvent();
workbook.setTheme(theme);
ITheme theme = Themes.GetMesh();
workbook.setTheme(theme);
ITheme theme = Themes.GetMetropolitan();
workbook.setTheme(theme);
ITheme theme = Themes.GetOrganic();
workbook.setTheme(theme);
ITheme theme = Themes.GetParcel();
workbook.setTheme(theme);
ITheme theme = Themes.GetParallax();
workbook.setTheme(theme);
ITheme theme = Themes.GetQuotable();
workbook.setTheme(theme);
ITheme theme = Themes.GetRetrospect();
workbook.setTheme(theme);
ITheme theme = Themes.GetSavon();
workbook.setTheme(theme);
ITheme theme = Themes.GetSlate();
workbook.setTheme(theme);
ITheme theme = Themes.GetSlice();
workbook.setTheme(theme);
ITheme theme = Themes.GetVaporTrail();
workbook.setTheme(theme);
ITheme theme = Themes.GetView();
workbook.setTheme(theme);
ITheme theme = Themes.GetWisp();
workbook.setTheme(theme);
ITheme theme = Themes.GetWoodType();
workbook.setTheme(theme);
ITheme theme = Themes.GetOffice2007();
workbook.setTheme(theme);
ITheme theme = Themes.GetApex();
workbook.setTheme(theme);
ITheme theme = Themes.GetAspect();
workbook.setTheme(theme);
ITheme theme = Themes.GetCivic();
workbook.setTheme(theme);
ITheme theme = Themes.GetConcourse();
workbook.setTheme(theme);
ITheme theme = Themes.GetEquity();
workbook.setTheme(theme);
ITheme theme = Themes.GetFlow();
workbook.setTheme(theme);
ITheme theme = Themes.GetFoundry();
workbook.setTheme(theme);
ITheme theme = Themes.GetMedian();
workbook.setTheme(theme);
ITheme theme = Themes.GetMetro();
workbook.setTheme(theme);
ITheme theme = Themes.GetModule();
workbook.setTheme(theme);
ITheme theme = Themes.GetOpulent();
workbook.setTheme(theme);
ITheme theme = Themes.GetOriel();
workbook.setTheme(theme);
ITheme theme = Themes.GetOrigin();
workbook.setTheme(theme);
ITheme theme = Themes.GetPaper();
workbook.setTheme(theme);
ITheme theme = Themes.GetSolstice();
workbook.setTheme(theme);
ITheme theme = Themes.GetTechnic();
workbook.setTheme(theme);
ITheme theme = Themes.GetTrek();
workbook.setTheme(theme);
ITheme theme = Themes.GetUrban();
workbook.setTheme(theme);
ITheme theme = Themes.GetVerve();
workbook.setTheme(theme);