SpreadJS Documentation
name Method
The theme name.
Gets or sets the theme color based on the theme name.
Syntax
var instance = new GcSpread.Sheets.ThemeColor(name,
                                             text1,
                                             text2,
                                             background1,
                                             background2,
                                             accent1,
                                             accent2,
                                             accent3,
                                             accent4,
                                             accent5,
                                             accent6,
                                             link,
                                             followedLink);
var returnValue; // Type: Object
returnValue = instance.name(value);
function name( 
   value : string
) : Object;

Parameters

value
The theme name.

Return Value

The theme color.
Example
This example sets the theme name.
var ntheme = new GcSpread.Sheets.ThemeColor("customThemeColor");
ntheme.accent1("lightgreen");
ntheme.name("green theme");
activeSheet.currentTheme(new GcSpread.Sheets.SpreadTheme("customTheme", ntheme));
activeSheet.getCell(0, 0).backColor("accent 1");
See Also

Reference

ThemeColor type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.