SpreadJS Documentation
ThemeColor Constructor
The owner that contains the named variable.
The theme color for text1.
The theme color for text2.
The theme color for background1.
The theme color for background2.
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 ThemeColor instance.
Syntax
var instance = new GcSpread.Sheets.ThemeColor(name,
                                             text1,
                                             text2,
                                             background1,
                                             background2,
                                             accent1,
                                             accent2,
                                             accent3,
                                             accent4,
                                             accent5,
                                             accent6,
                                             link,
                                             followedLink);
function ThemeColor( 
   name : string,
   text1 : object,
   text2 : object,
   background1 : object,
   background2 : object,
   accent1 : object,
   accent2 : object,
   accent3 : object,
   accent4 : object,
   accent5 : object,
   accent6 : object,
   link : object,
   followedLink : object
) : ThemeColor;

Parameters

name
The owner that contains the named variable.
text1
The theme color for text1.
text2
The theme color for text2.
background1
The theme color for background1.
background2
The theme color for background2.
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 GcSpread.Sheets.ThemeColor("customThemeColor");
ntheme.accent1("lightgreen");
activeSheet.currentTheme(new GcSpread.Sheets.SpreadTheme("customTheme", ntheme));
activeSheet.getCell(0, 0).backColor("accent 1");
activeSheet.getCell(1, 0).backColor("accent 1 30");
See Also

Reference

ThemeColor type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.