Class ThemeColor
Цвет темы Представление цвета темы.
Подробная документация
get Color Type()
Получите тип этого цвета.
Возвращаться
Color Type
— Цветотип.
Авторизация
Сценарии, использующие этот метод, требуют авторизации с одной или несколькими из следующих областей :
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
get Theme Color Type()
Получает цветовой тип темы для этого цвета.
Возвращаться
Theme Color Type
— тип цвета темы.
Авторизация
Сценарии, использующие этот метод, требуют авторизации с одной или несколькими из следующих областей :
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-12-02 UTC.
[null,null,["Последнее обновление: 2024-12-02 UTC."],[[["`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) and `getThemeColorType()` 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` or `https://www.googleapis.com/auth/spreadsheets` before use."]]],["ThemeColor provides a representation for a theme color. Key actions involve retrieving color information: `getColorType()` returns the color's type, and `getThemeColorType()` returns the specific theme color type. Both methods require authorization scopes `https://www.googleapis.com/auth/spreadsheets.currentonly` or `https://www.googleapis.com/auth/spreadsheets` to be used within scripts.\n"]]