Spread.Sheets Documentation
ColorScheme Constructor
GC.Spread.Sheets Namespace > ColorScheme type : ColorScheme Constructor
The owner that contains the named variable.
The theme color for background1.
The theme color for background2.
The theme color for text1.
The theme color for text2.
The theme color for accent1.
The theme color for accent2.
The theme color for accent3.
The theme color for accent4.
The theme color for accent5.
The theme color for accent6.
The color of the link.
The color of the followedLink.
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( 
   name : string,
   background1 : string,
   background2 : string,
   text1 : string,
   text2 : string,
   accent1 : string,
   accent2 : string,
   accent3 : string,
   accent4 : string,
   accent5 : string,
   accent6 : string,
   link : string,
   followedLink : string
) : ColorScheme;

Parameters

name
The owner that contains the named variable.
background1
The theme color for background1.
background2
The theme color for background2.
text1
The theme color for text1.
text2
The theme color for text2.
accent1
The theme color for accent1.
accent2
The theme color for accent2.
accent3
The theme color for accent3.
accent4
The theme color for accent4.
accent5
The theme color for accent5.
accent6
The theme color for accent6.
link
The color of the link.
followedLink
The color of the followedLink.
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");
See Also

Reference

ColorScheme type