Class ThemeColor Stay organized with collections Save and categorize content based on your preferences.
Page Summary
ThemeColor represents a theme color.
It includes methods to get the color type and theme color type.
Both methods require specific authorization scopes.
ThemeColor
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 followingscopes:
https://www.googleapis.com/auth/spreadsheets.currentonlyhttps://www.googleapis.com/auth/spreadsheets
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-11 UTC.