SpreadJS 13
GC.Spread.Sheets Namespace / ColorScheme type / background1 Method
The background1 theme color string.
In This Topic
    background1 Method
    In This Topic
    Gets or sets the background1 theme color of the color scheme.
    Syntax
    var instance = new GC.Spread.Sheets.ColorScheme(name,
                                                   background1,
                                                   background2,
                                                   text1,
                                                   text2,
                                                   accent1,
                                                   accent2,
                                                   accent3,
                                                   accent4,
                                                   accent5,
                                                   accent6,
                                                   link,
                                                   followedLink);
    var returnValue; // Type: any
    returnValue = instance.background1(value);
    function background1( 
       value : string
    ) : any;

    Parameters

    value
    The background1 theme color string.

    Return Value

    If no value is set, returns the background1 theme color; otherwise, returns the color scheme.
    Example
    This example sets the background1 color.
    var ntheme = new GC.Spread.Sheets.Theme("customThemeColor");
    ntheme.colors().accent1("lightgreen");
    ntheme.colors().background1("orange");
    activeSheet.currentTheme(ntheme);
    activeSheet.getCell(0, 0).backColor("accent 1");
    activeSheet.getCell(1, 0).backColor("background 1");
    See Also