Spread.Sheets Documentation
name Method
GC.Spread.Sheets Namespace > ColorScheme type : name Method
The name.
Gets or sets the name 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.name(value);
function name( 
   value : string
) : any;

Parameters

value
The name.

Return Value

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

Reference

ColorScheme type