GcSpread.Sheets Namespace > ThemeColor type : getColor Method |
var instance = new GcSpread.Sheets.ThemeColor(name, text1, text2, background1, background2, accent1, accent2, accent3, accent4, accent5, accent6, link, followedLink); var value; // Type: string value = instance.getColor(name);
function getColor( name : string ) : string;
var ntheme = new GcSpread.Sheets.ThemeColor("customThemeColor"); ntheme.accent1("lightgreen"); ntheme.followedHyperline("orange"); ntheme.hyperline("red"); ntheme.name("test"); activeSheet.currentTheme(new GcSpread.Sheets.SpreadTheme("customTheme", ntheme)); activeSheet.getCell(0, 0).backColor("accent 1"); activeSheet.getCell(1, 0).backColor("followedHyperlink"); activeSheet.getCell(2, 0).backColor("hyperlink"); var cname = ntheme.getColor("accent 1"); alert(cname);