Namespace EasyXLS.Themes
Class ExcelTheme
System.Object
EasyXLS.Themes.ExcelTheme
public class ExcelTheme
extends System.Object
This class stores the theme information like theme colors, theme fonts and theme effects.
A theme can be assigned to the document.
-
Constructor Summary
ConstructorDescriptionDefines a theme that is initialized with the default Office theme schemes: colors, fonts and effects.ExcelTheme(System.String builtInTheme)
Defines a theme that is one of the built-in themes. -
Method Summary
Modifier and TypeMethodDescriptionReturns the color scheme of the theme.Returns the effect scheme of the theme.Returns the font scheme of the theme.System.String
getName()
Returns the name of the theme.void
InitAs(System.String builtInTheme)
Initializes the theme that is one of the built-in themes.void
setColorScheme(ExcelColorScheme colorScheme)
Sets the color scheme of the theme.void
setEffectScheme(ExcelEffectScheme effectScheme)
Sets the effect scheme of the theme.void
setFontScheme(ExcelFontScheme fontScheme)
Sets the font scheme of the theme.void
setName(System.String name)
Sets the name of the theme.Methods inherited from class System.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ExcelTheme
public ExcelTheme()Defines a theme that is initialized with the default Office theme schemes: colors, fonts and effects. -
ExcelTheme
public ExcelTheme(System.String builtInTheme)Defines a theme that is one of the built-in themes.- Parameters:
builtInTheme
- the built-in theme. Possible values are available inTheme
class.
-
-
Method Details
-
getName
public System.String getName()Returns the name of the theme.- Returns:
- the name of the theme
- See Also:
setName(System.String)
-
setName
public void setName(System.String name)Sets the name of the theme.- Parameters:
name
- the name of the theme- See Also:
getName()
-
getColorScheme
Returns the color scheme of the theme.- Returns:
- the color scheme of the theme
- See Also:
setColorScheme(EasyXLS.Themes.ExcelColorScheme)
,getFontScheme()
,getEffectScheme()
-
setColorScheme
Sets the color scheme of the theme.- Parameters:
colorScheme
- the color scheme of the theme.- See Also:
getColorScheme()
,setFontScheme(EasyXLS.Themes.ExcelFontScheme)
,setEffectScheme(EasyXLS.Themes.ExcelEffectScheme)
-
getFontScheme
Returns the font scheme of the theme.- Returns:
- the font scheme of the theme
- See Also:
setFontScheme(EasyXLS.Themes.ExcelFontScheme)
,getColorScheme()
,getEffectScheme()
-
setFontScheme
Sets the font scheme of the theme.- Parameters:
fontScheme
- the font scheme of the theme.- See Also:
getFontScheme()
,setColorScheme(EasyXLS.Themes.ExcelColorScheme)
,setEffectScheme(EasyXLS.Themes.ExcelEffectScheme)
-
getEffectScheme
Returns the effect scheme of the theme.- Returns:
- the effect scheme of the theme
- See Also:
setEffectScheme(EasyXLS.Themes.ExcelEffectScheme)
,getColorScheme()
,getFontScheme()
-
setEffectScheme
Sets the effect scheme of the theme.- Parameters:
effectScheme
- the effect scheme of the theme.- See Also:
getEffectScheme()
,setColorScheme(EasyXLS.Themes.ExcelColorScheme)
,setFontScheme(EasyXLS.Themes.ExcelFontScheme)
-
InitAs
public void InitAs(System.String builtInTheme)Initializes the theme that is one of the built-in themes.- Parameters:
builtInTheme
- the built-in theme. Possible values are available inTheme
class.
-