GetThemesColors

GetThemesColors() → { Array.<string> }

Returns a list of all the available theme colors for the spreadsheet.

Parameters:

This method doesn't have any parameters.

Returns:

Type
Array.<string>

Example

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

Resulting document