Namespace EasyXLS.Themes
Class ExcelColorScheme
System.Object
EasyXLS.Themes.ExcelColorScheme
public class ExcelColorScheme
extends System.Object
This class stores the colors information for a theme.
- 
Constructor SummaryConstructorsConstructorDescriptionDefines a color scheme that is initialized with the built-in Office colors.ExcelColorScheme(System.String builtInThemeColors) Defines a color scheme that is initialized with the specified built-in theme colors.
- 
Method SummaryModifier and TypeMethodDescriptionSystem.Drawing.ColorReturns the Accent 1 color.System.Drawing.ColorReturns the Accent 2 color.System.Drawing.ColorReturns the Accent 3 color.System.Drawing.ColorReturns the Accent 4 color.System.Drawing.ColorReturns the Accent 5 color.System.Drawing.ColorReturns the Accent 6 color.System.Drawing.ColorReturns the Followed Hyperlink color.System.Drawing.ColorReturns the Hyperlink color.System.StringgetName()Returns the name of the color scheme.System.Drawing.ColorReturns the Text/Background-Dark 1 color.System.Drawing.ColorReturns the Text/Background-Dark 2 color.System.Drawing.ColorReturns the Text/Background-Light 1 color.System.Drawing.ColorReturns the Text/Background-Light 2 color.voidInitAs(System.String builtInThemeColors) Initializes a color scheme with the specified built-in theme colors.boolReturns true if the Text/Background Dark 1 color is set automatically, false otherwise.boolReturns true if the Text/Background Light 1 color is set automatically, false otherwise.voidsetAccent1Color(System.Drawing.Color accent1) Sets the Accent 1 color.voidsetAccent2Color(System.Drawing.Color accent2) Sets the Accent 2 color.voidsetAccent3Color(System.Drawing.Color accent3) Sets the Accent 3 color.voidsetAccent4Color(System.Drawing.Color accent4) Sets the Accent 4 color.voidsetAccent5Color(System.Drawing.Color accent5) Sets the Accent 5 color.voidsetAccent6Color(System.Drawing.Color accent6) Sets the Accent 6 color.voidsetAutomaticTextBackgroundDark1(bool isAutomatic) Sets the automatic color for the Text/Background-Dark 1 color.voidsetAutomaticTextBackgroundLight1(bool isAutomatic) Sets the automatic color for the Text/Background-Light 1 color.voidsetFollowedHyperlinkColor(System.Drawing.Color followedHyperlink) Sets the Followed Hyperlink color.voidsetHyperlinkColor(System.Drawing.Color hyperlink) Sets the Hyperlink color.voidsetName(System.String name) Sets the name of the color scheme.voidsetTextBackgroundDark1(System.Drawing.Color textBackgroundDark1) Sets the Text/Background-Dark 1 color.voidsetTextBackgroundDark2(System.Drawing.Color textBackgroundDark2) Sets the Text/Background-Dark 2 color.voidsetTextBackgroundLight1(System.Drawing.Color textBackgroundLight1) Sets the Text/Background-Light 1 color.voidsetTextBackgroundLight2(System.Drawing.Color textBackgroundLight2) Sets the Text/Background-Light 2 color.Methods inherited from class System.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
ExcelColorSchemepublic ExcelColorScheme()Defines a color scheme that is initialized with the built-in Office colors.
- 
ExcelColorSchemepublic ExcelColorScheme(System.String builtInThemeColors) Defines a color scheme that is initialized with the specified built-in theme colors.- Parameters:
- builtInThemeColors- the predefined theme colors. Possible values are available in- Themeclass.
 
 
- 
- 
Method Details- 
InitAspublic void InitAs(System.String builtInThemeColors) Initializes a color scheme with the specified built-in theme colors.- Parameters:
- builtInThemeColors- the built-in theme colors. Possible values are available in- Themeclass.
 
- 
getNamepublic System.String getName()Returns the name of the color scheme.- Returns:
- the name of the color scheme
- See Also:
 
- 
setNamepublic void setName(System.String name) Sets the name of the color scheme.- Parameters:
- name- the name of the color scheme
- See Also:
 
- 
getTextBackgroundDark1public System.Drawing.Color getTextBackgroundDark1()Returns the Text/Background-Dark 1 color.- Returns:
- the Text/Background-Dark 1 color of the scheme
- See Also:
 
- 
setTextBackgroundDark1public void setTextBackgroundDark1(System.Drawing.Color textBackgroundDark1) Sets the Text/Background-Dark 1 color.- Parameters:
- textBackgroundDark1- the Text/Background-Dark 1 color.
- See Also:
 
- 
IsAutomaticTextBackgroundDark1public bool IsAutomaticTextBackgroundDark1()Returns true if the Text/Background Dark 1 color is set automatically, false otherwise.- Returns:
- true if the Text/Background Dark 1 color is set automatically, false otherwise.
- See Also:
 
- 
setAutomaticTextBackgroundDark1public void setAutomaticTextBackgroundDark1(bool isAutomatic) Sets the automatic color for the Text/Background-Dark 1 color.- Parameters:
- isAutomatic- true if the Text/Background Dark 1 color is set automatically, false otherwise.
- See Also:
 
- 
getTextBackgroundLight1public System.Drawing.Color getTextBackgroundLight1()Returns the Text/Background-Light 1 color.- Returns:
- the Text/Background-Light 1 color of the scheme
- See Also:
 
- 
setTextBackgroundLight1public void setTextBackgroundLight1(System.Drawing.Color textBackgroundLight1) Sets the Text/Background-Light 1 color.- Parameters:
- textBackgroundLight1- the Text/Background-Light 1 color.
- See Also:
 
- 
IsAutomaticTextBackgroundLight1public bool IsAutomaticTextBackgroundLight1()Returns true if the Text/Background Light 1 color is set automatically, false otherwise.- Returns:
- true if the Text/Background Light 1 color is set automatically, false otherwise.
- See Also:
 
- 
setAutomaticTextBackgroundLight1public void setAutomaticTextBackgroundLight1(bool isAutomatic) Sets the automatic color for the Text/Background-Light 1 color.- Parameters:
- isAutomatic- true if the Text/Background Light 1 color is set automatically, false otherwise.
- See Also:
 
- 
getTextBackgroundDark2public System.Drawing.Color getTextBackgroundDark2()Returns the Text/Background-Dark 2 color.- Returns:
- the Text/Background-Dark 2 color of the scheme
- See Also:
 
- 
setTextBackgroundDark2public void setTextBackgroundDark2(System.Drawing.Color textBackgroundDark2) Sets the Text/Background-Dark 2 color.- Parameters:
- textBackgroundDark2- the Text/Background-Dark 2 color.
- See Also:
 
- 
getTextBackgroundLight2public System.Drawing.Color getTextBackgroundLight2()Returns the Text/Background-Light 2 color.- Returns:
- the Text/Background-Light 2 color of the scheme
- See Also:
 
- 
setTextBackgroundLight2public void setTextBackgroundLight2(System.Drawing.Color textBackgroundLight2) Sets the Text/Background-Light 2 color.- Parameters:
- textBackgroundLight2- the Text/Background-Light 2 color.
- See Also:
 
- 
getAccent1Colorpublic System.Drawing.Color getAccent1Color()Returns the Accent 1 color.- Returns:
- the Accent 1 color of the scheme
- See Also:
 
- 
setAccent1Colorpublic void setAccent1Color(System.Drawing.Color accent1) Sets the Accent 1 color.- Parameters:
- accent1- the Accent 1 color.
- See Also:
 
- 
getAccent2Colorpublic System.Drawing.Color getAccent2Color()Returns the Accent 2 color.- Returns:
- the Accent 2 color of the scheme
- See Also:
 
- 
setAccent2Colorpublic void setAccent2Color(System.Drawing.Color accent2) Sets the Accent 2 color.- Parameters:
- accent2- the Accent 2 color.
- See Also:
 
- 
getAccent3Colorpublic System.Drawing.Color getAccent3Color()Returns the Accent 3 color.- Returns:
- the Accent 3 color of the scheme
- See Also:
 
- 
setAccent3Colorpublic void setAccent3Color(System.Drawing.Color accent3) Sets the Accent 3 color.- Parameters:
- accent3- the Accent 3 color.
- See Also:
 
- 
getAccent4Colorpublic System.Drawing.Color getAccent4Color()Returns the Accent 4 color.- Returns:
- the Accent 4 color of the scheme
- See Also:
 
- 
setAccent4Colorpublic void setAccent4Color(System.Drawing.Color accent4) Sets the Accent 4 color.- Parameters:
- accent4- the Accent 4 color.
- See Also:
 
- 
getAccent5Colorpublic System.Drawing.Color getAccent5Color()Returns the Accent 5 color.- Returns:
- the Accent 5 color of the scheme
- See Also:
 
- 
setAccent5Colorpublic void setAccent5Color(System.Drawing.Color accent5) Sets the Accent 5 color.- Parameters:
- accent5- the Accent 5 color.
- See Also:
 
- 
getAccent6Colorpublic System.Drawing.Color getAccent6Color()Returns the Accent 6 color.- Returns:
- the Accent 6 color of the scheme
- See Also:
 
- 
setAccent6Colorpublic void setAccent6Color(System.Drawing.Color accent6) Sets the Accent 6 color.- Parameters:
- accent6- the Accent 6 color.
- See Also:
 
- 
getHyperlinkColorpublic System.Drawing.Color getHyperlinkColor()Returns the Hyperlink color.- Returns:
- the Hyperlink color of the scheme
- See Also:
 
- 
setHyperlinkColorpublic void setHyperlinkColor(System.Drawing.Color hyperlink) Sets the Hyperlink color.- Parameters:
- hyperlink- the Hyperlink color.
- See Also:
 
- 
getFollowedHyperlinkColorpublic System.Drawing.Color getFollowedHyperlinkColor()Returns the Followed Hyperlink color.- Returns:
- the Followed Hyperlink color of the scheme
- See Also:
 
- 
setFollowedHyperlinkColorpublic void setFollowedHyperlinkColor(System.Drawing.Color followedHyperlink) Sets the Followed Hyperlink color.- Parameters:
- followedHyperlink- the Followed Hyperlink color.
- See Also:
 
 
-