Class Color
Farbe
Eine Darstellung für eine Farbe.
Detaillierte Dokumentation
asRgbColor()
Konvertiert diese Farbe in einen RgbColor
.
Rückflug
RgbColor
– die RGB-Farbe.
Löst aus
Error
– wenn die Farbe keine RgbColor
ist
Autorisierung
Scripts, die diese Methode verwenden, erfordern eine Autorisierung für einen oder mehrere der folgenden Bereiche:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
asThemeColor()
Konvertiert diese Farbe in eine ThemeColor
.
Rückflug
ThemeColor
: Die Designfarbe.
Löst aus
Error
, wenn die Farbe keine ThemeColor
ist.
Autorisierung
Scripts, die diese Methode verwenden, erfordern eine Autorisierung für einen oder mehrere der folgenden Bereiche:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getColorType()
Den Typ dieser Farbe abrufen.
Rückflug
ColorType
: Der Farbtyp.
Autorisierung
Scripts, die diese Methode verwenden, erfordern eine Autorisierung für einen oder mehrere der folgenden Bereiche:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-12-02 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-12-02 (UTC)."],[[["Represents a color and provides methods for manipulation."],["Offers methods to convert between RGB and Theme color representations."],["Allows retrieval of the underlying color type (RGB or Theme)."],["All methods require authorization with specific scopes for Google Spreadsheets access."]]],["The core content defines a \"Color\" representation with three methods. `asRgbColor()` converts the color to an `RgbColor`, returning the RGB color and throwing an error if it's not an `RgbColor`. `asThemeColor()` converts the color to a `ThemeColor`, returning the theme color and throwing an error if it's not a `ThemeColor`. `getColorType()` retrieves and returns the color's type as a `ColorType`. Each method requires specific authorization scopes.\n"]]