AI-generated Key Takeaways
-
ThemeColor
represents a theme color within Google Apps Script and provides methods for interacting with it. -
It offers two methods:
getColorType()
to determine the color's type (e.g., RGB, HEX) andgetThemeColorType()
to identify its specific theme color type (e.g., ACCENT1, TEXT1). -
Both methods require authorization with scopes such as
https://www.googleapis.com/auth/spreadsheets.currentonly
orhttps://www.googleapis.com/auth/spreadsheets
before use.
A representation for a theme color.
Methods
Method | Return type | Brief description |
---|---|---|
get | Color | Get the type of this color. |
get | Theme | Gets the theme color type of this color. |
Detailed documentation
getColorType()
getThemeColorType()
Gets the theme color type of this color.
Return
Theme
— The theme color type.
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets