Get Started
Documentation

GetThemesColors

GetThemesColors() → {ThemesColors}

Get the list of all available theme colors for the spreadsheet.

Returns:

Type
ThemesColors

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var themes = Api.GetThemesColors();
for (var i = 0; i < themes.length; ++i) {
oWorksheet.GetRange('A' + (i + 1)).SetValue(themes[i]);
}
builder.SaveFile("xlsx", "GetThemesColors.xlsx");
builder.CloseFile();

Resulting document