Get Started
Usage API

GetThemesColors

GetThemesColors() → { Array.<string> }

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

Parameters:

This method doesn't have any parameters.

Returns:

Type
Array.<string>

Example

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

Resulting document