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 Summary

    Constructors
    Constructor
    Description
    Defines 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 Summary

    Modifier and Type
    Method
    Description
    System.Drawing.Color
    Returns the Accent 1 color.
    System.Drawing.Color
    Returns the Accent 2 color.
    System.Drawing.Color
    Returns the Accent 3 color.
    System.Drawing.Color
    Returns the Accent 4 color.
    System.Drawing.Color
    Returns the Accent 5 color.
    System.Drawing.Color
    Returns the Accent 6 color.
    System.Drawing.Color
    Returns the Followed Hyperlink color.
    System.Drawing.Color
    Returns the Hyperlink color.
    System.String
    Returns the name of the color scheme.
    System.Drawing.Color
    Returns the Text/Background-Dark 1 color.
    System.Drawing.Color
    Returns the Text/Background-Dark 2 color.
    System.Drawing.Color
    Returns the Text/Background-Light 1 color.
    System.Drawing.Color
    Returns the Text/Background-Light 2 color.
    void
    InitAs​(System.String builtInThemeColors)
    Initializes a color scheme with the specified built-in theme colors.
    bool
    Returns true if the Text/Background Dark 1 color is set automatically, false otherwise.
    bool
    Returns true if the Text/Background Light 1 color is set automatically, false otherwise.
    void
    setAccent1Color​(System.Drawing.Color accent1)
    Sets the Accent 1 color.
    void
    setAccent2Color​(System.Drawing.Color accent2)
    Sets the Accent 2 color.
    void
    setAccent3Color​(System.Drawing.Color accent3)
    Sets the Accent 3 color.
    void
    setAccent4Color​(System.Drawing.Color accent4)
    Sets the Accent 4 color.
    void
    setAccent5Color​(System.Drawing.Color accent5)
    Sets the Accent 5 color.
    void
    setAccent6Color​(System.Drawing.Color accent6)
    Sets the Accent 6 color.
    void
    setAutomaticTextBackgroundDark1​(bool isAutomatic)
    Sets the automatic color for the Text/Background-Dark 1 color.
    void
    setAutomaticTextBackgroundLight1​(bool isAutomatic)
    Sets the automatic color for the Text/Background-Light 1 color.
    void
    setFollowedHyperlinkColor​(System.Drawing.Color followedHyperlink)
    Sets the Followed Hyperlink color.
    void
    setHyperlinkColor​(System.Drawing.Color hyperlink)
    Sets the Hyperlink color.
    void
    setName​(System.String name)
    Sets the name of the color scheme.
    void
    setTextBackgroundDark1​(System.Drawing.Color textBackgroundDark1)
    Sets the Text/Background-Dark 1 color.
    void
    setTextBackgroundDark2​(System.Drawing.Color textBackgroundDark2)
    Sets the Text/Background-Dark 2 color.
    void
    setTextBackgroundLight1​(System.Drawing.Color textBackgroundLight1)
    Sets the Text/Background-Light 1 color.
    void
    setTextBackgroundLight2​(System.Drawing.Color textBackgroundLight2)
    Sets the Text/Background-Light 2 color.

    Methods inherited from class System.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExcelColorScheme

      public ExcelColorScheme()
      Defines a color scheme that is initialized with the built-in Office colors.
    • ExcelColorScheme

      public 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 Theme class.
  • Method Details