SpreadJS 14
GC.Spread.Sheets Namespace / ColorScheme type
In This Topic
    ColorScheme type
    In This Topic
    Creates a ColorScheme instance.
    Syntax
    var instance = new GC.Spread.Sheets.ColorScheme(name,
                                                   background1,
                                                   background2,
                                                   text1,
                                                   text2,
                                                   accent1,
                                                   accent2,
                                                   accent3,
                                                   accent4,
                                                   accent5,
                                                   accent6,
                                                   link,
                                                   followedLink);
    function ColorScheme;
    Example
    //This example creates colors for the theme.
    var ntheme = new GC.Spread.Sheets.Theme("customThemeColor");
    ntheme.colors().accent1("lightgreen");
    activeSheet.currentTheme(ntheme);
    activeSheet.getCell(0, 0).backColor("accent 1");
    activeSheet.getCell(1, 0).backColor("accent 1 30");
    Inheritance Hierarchy

    Object
       GC.Spread.Sheets.ColorScheme

    Constructors
     NameDescription
    public ConstructorCreates a ColorScheme instance.  
    Top
    Methods
     NameDescription
    public MethodGets or sets the accent1 theme color of the color scheme.  
    public MethodGets or sets the accent2 theme color of the color scheme.  
    public MethodGets or sets the accent3 theme color of the color scheme.  
    public MethodGets or sets the accent4 theme color of the color scheme.  
    public MethodGets or sets the accent5 theme color of the color scheme.  
    public MethodGets or sets the accent6 theme color of the color scheme.  
    public MethodGets or sets the background1 theme color of the color scheme.  
    public MethodGets or sets the background2 theme color of the color scheme.  
    public MethodGets or sets the followed hyperlink theme color of the color scheme.  
    public MethodGets the color based on the theme color.  
    public MethodGets or sets the hyperlink theme color of the color scheme.  
    public MethodGets or sets the name of the color scheme.  
    public MethodGets or sets the textcolor1 theme color of the color scheme.  
    public MethodGets or sets the textcolor2 theme color of the color scheme.  
    Top
    See Also