[]
• new ThemeColors()
内置主题的主题颜色
代码示例
//本示例创建了一个自定义主题
var custom = new GC.Spread.Sheets.Theme("CustomTheme");
custom.colors().accent1("red");
custom.colors().accent6("green");
custom.colors().textColor1("orange");
activeSheet.currentTheme(custom);
activeSheet.getCell(0, 0).backColor("accent 1");
activeSheet.getCell(1, 0).backColor("accent 1 30");
• Apex: ColorScheme
Apex主题颜色
代码示例
//本示例使用了Apex主题
activeSheet.currentTheme("Apex");
activeSheet.resumePaint();
activeSheet.repaint();
• Aspect: ColorScheme
Aspect主题颜色
代码示例
//本例使用Aspect主题
activeSheet.currentTheme("Aspect");
activeSheet.resumePaint();
activeSheet.repaint();
• Civic: ColorScheme
Civic主题颜色
代码示例
//本示例使用了Civic主题
activeSheet.currentTheme("Civic");
activeSheet.resumePaint();
activeSheet.repaint();
• Concourse: ColorScheme
Concourse主题颜色
代码示例
//本例使用Concourse主题
activeSheet.currentTheme("Concourse");
activeSheet.resumePaint();
activeSheet.repaint();
• Default: ColorScheme
默认主题颜色
代码示例
//本示例设置默认主题
activeSheet.currentTheme("Default");
activeSheet.resumePaint();
activeSheet.repaint();
• Equity: ColorScheme
Equity主题颜色
代码示例
//本示例设置了Equity主题
activeSheet.currentTheme("Equity");
activeSheet.resumePaint();
activeSheet.repaint();
• Flow: ColorScheme
Flow主题颜色
代码示例
//本示例设置了Flow主题
activeSheet.currentTheme("Flow");
activeSheet.resumePaint();
activeSheet.repaint();
• Foundry: ColorScheme
Foundry主题颜色
代码示例
//本示例设置了Foundry主题
activeSheet.currentTheme("Foundry");
activeSheet.resumePaint();
activeSheet.repaint();
• Median: ColorScheme
Median主题颜色
代码示例
//本示例设置了Median主题
activeSheet.currentTheme("Median");
activeSheet.resumePaint();
activeSheet.repaint();
• Metro: ColorScheme
Metro主题颜色
代码示例
//本示例设置了Metro主题
activeSheet.currentTheme("Metro");
activeSheet.resumePaint();
activeSheet.repaint();
• Module: ColorScheme
Module主题颜色
代码示例
//本示例设置了Module主题
activeSheet.currentTheme("Module");
activeSheet.resumePaint();
activeSheet.repaint();
• Office: ColorScheme
Office主题颜色
代码示例
//本示例设置了Office主题
activeSheet.currentTheme("Office");
activeSheet.resumePaint();
activeSheet.repaint();
• Office2007: ColorScheme
Office2007主题颜色
代码示例
//本示例设置了Office2007主题
activeSheet.currentTheme("Office2007");
activeSheet.resumePaint();
activeSheet.repaint();
• Opulent: ColorScheme
Opulent主题颜色
代码示例
//本示例设置了Opulent主题
activeSheet.currentTheme("Opulent");
activeSheet.resumePaint();
activeSheet.repaint();
• Oriel: ColorScheme
Oriel主题颜色
代码示例
//本示例设置了Oriel主题
activeSheet.currentTheme("Oriel");
activeSheet.resumePaint();
activeSheet.repaint();
• Origin: ColorScheme
Origin主题颜色
代码示例
//本示例设置了Origin主题
activeSheet.currentTheme("Origin");
activeSheet.resumePaint();
activeSheet.repaint();
• Paper: ColorScheme
Paper主题颜色
代码示例
//本示例设置了Paper主题
activeSheet.currentTheme("Paper");
activeSheet.resumePaint();
activeSheet.repaint();
• Solstice: ColorScheme
Solstice主题颜色
代码示例
//本示例设置了Solstice主题
activeSheet.currentTheme("Solstice");
activeSheet.resumePaint();
activeSheet.repaint();
• Technic: ColorScheme
Technic主题颜色
代码示例
//本示例设置了Technic主题
activeSheet.currentTheme("Technic");
activeSheet.resumePaint();
activeSheet.repaint();
• Trek: ColorScheme
Trek主题颜色
代码示例
//本示例设置了Trek主题
activeSheet.currentTheme("Trek");
activeSheet.resumePaint();
activeSheet.repaint();
• Urban: ColorScheme
Urban主题颜色
代码示例
//本示例设置了Urban主题
activeSheet.currentTheme("Urban");
activeSheet.resumePaint();
activeSheet.repaint();
• Verve: ColorScheme
Verve主题颜色
代码示例
//本示例设置了Verve主题
activeSheet.currentTheme("Verve");
activeSheet.resumePaint();
activeSheet.repaint();