Class ThemeColor
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
MotywKolor
Kolor, który odnosi się do wpisu w ColorScheme
strony.
Szczegółowa dokumentacja
getColorType()
Określ typ tego koloru.
Powrót
ColorType
– typ koloru.
Autoryzacja
Skrypty, które korzystają z tej metody, wymagają autoryzacji z co najmniej jednym z tych zakresów:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getThemeColorType()
Pobierz typ koloru motywu.
Powrót
ThemeColorType
Autoryzacja
Skrypty, które korzystają z tej metody, wymagają autoryzacji z co najmniej jednym z tych zakresów:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eThemeColor\u003c/code\u003e represents a color from a Google Slide's color scheme, allowing you to access and utilize predefined colors.\u003c/p\u003e\n"],["\u003cp\u003eIt provides two methods: \u003ccode\u003egetColorType()\u003c/code\u003e to determine the color's general type and \u003ccode\u003egetThemeColorType()\u003c/code\u003e to identify its specific role within the theme.\u003c/p\u003e\n"],["\u003cp\u003eBoth methods require authorization with specific scopes related to Google Slides access.\u003c/p\u003e\n"]]],["ThemeColor represents a color linked to a page's ColorScheme. It offers two methods: `getColorType()` and `getThemeColorType()`. `getColorType()` retrieves the color's type, returning a ColorType. `getThemeColorType()` fetches the specific theme color type, returning a ThemeColorType. Both methods necessitate authorization via specific scopes like `presentations.currentonly` or `presentations` to operate within scripts.\n"],null,["# Class ThemeColor\n\nThemeColor\n\nA color that refers to an entry in the page's [ColorScheme](/apps-script/reference/slides/color-scheme). \n\n### Methods\n\n| Method | Return type | Brief description |\n|---------------------------------------------|------------------------------------------------------------------|-----------------------------------------|\n| [getColorType()](#getColorType()) | [ColorType](../base/color-type.html) | Get the type of this color. |\n| [getThemeColorType()](#getThemeColorType()) | [ThemeColorType](/apps-script/reference/slides/theme-color-type) | Get the theme color type of this color. |\n\nDetailed documentation\n----------------------\n\n### `get``Color``Type()`\n\nGet the type of this color.\n\n#### Return\n\n\n[ColorType](../base/color-type.html) --- The color type.\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`\n\n*** ** * ** ***\n\n### `get``Theme``Color``Type()`\n\nGet the theme color type of this color.\n\n#### Return\n\n\n[ThemeColorType](/apps-script/reference/slides/theme-color-type)\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`"]]