Enum EventColor
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
WydarzenieKolor
Wyliczenie reprezentujące nazwane kolory wydarzeń dostępne w usłudze Kalendarz.
Aby wywołać enum, wywołaj jego klasę nadrzędną, nazwę i właściwość. Na przykład:
CalendarApp.EventColor.PALE_BLUE
.
Właściwości
Właściwość | Typ | Opis |
PALE_BLUE | Enum |
Jasnoniebieski ("1" ), nazywany w interfejsie Kalendarza „Peacock”. |
PALE_GREEN | Enum |
Bladozielony ("2" ), nazywany „Sage” w interfejsie Kalendarza. |
MAUVE | Enum |
Mauve ("3" ), w interfejsie Kalendarza nazywany „Winogron”. |
PALE_RED | Enum |
Jasnoczerwony ("4" ), nazywany „Flamingo” w interfejsie Kalendarza. |
YELLOW | Enum |
Żółty ("5" ), nazywany „Banana” w interfejsie Kalendarza. |
ORANGE | Enum |
Pomarańczowy ("6" ), nazywany w interfejsie Kalendarza „Pomarańczowy”. |
CYAN | Enum |
Błękit ("7" ), nazywany „Lawendowy” w interfejsie Kalendarza. |
GRAY | Enum |
Szary ("8" ), nazywany w interfejsie Kalendarza „grafitowym”. |
BLUE | Enum |
Niebieski ("9" ), nazywany „Blueberry” w interfejsie Kalendarza. |
GREEN | Enum |
Zielony ("10" ), w interfejsie Kalendarza nazywany „Basil”. |
RED | Enum |
Czerwony ("11" ), nazywany w interfejsie Kalendarza „Czerwony”. |
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\u003eEventColor\u003c/code\u003e is an enum used in Google Apps Script to represent the colors available for calendar events.\u003c/p\u003e\n"],["\u003cp\u003eYou can access these colors by calling \u003ccode\u003eCalendarApp.EventColor\u003c/code\u003e followed by the specific color property, like \u003ccode\u003eCalendarApp.EventColor.PALE_BLUE\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEach \u003ccode\u003eEventColor\u003c/code\u003e property corresponds to a specific color with both a numerical value and a user-friendly name displayed in the Calendar UI.\u003c/p\u003e\n"]]],[],null,["# Enum EventColor\n\nEventColor\n\nAn enum representing the named event colors available in the Calendar service.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCalendarApp.EventColor.PALE_BLUE`. \n\n### Properties\n\n| Property | Type | Description |\n|--------------|--------|----------------------------------------------------------------|\n| `PALE_BLUE` | `Enum` | Pale Blue (`\"1\"`), referred to as \"Peacock\" in th Calendar UI. |\n| `PALE_GREEN` | `Enum` | Pale Green (`\"2\"`), referred to as \"Sage\" in th Calendar UI. |\n| `MAUVE` | `Enum` | Mauve (`\"3\"`),, referred to as \"Grape\" in th Calendar UI. |\n| `PALE_RED` | `Enum` | Pale Red (`\"4\"`), referred to as \"Flamingo\" in th Calendar UI. |\n| `YELLOW` | `Enum` | Yellow (`\"5\"`), referred to as \"Banana\" in th Calendar UI. |\n| `ORANGE` | `Enum` | Orange (`\"6\"`), referred to as \"Tangerine\" in th Calendar UI. |\n| `CYAN` | `Enum` | Cyan (`\"7\"`), referred to as \"Lavender\" in th Calendar UI. |\n| `GRAY` | `Enum` | Gray (`\"8\"`), referred to as \"Graphite\" in th Calendar UI. |\n| `BLUE` | `Enum` | Blue (`\"9\"`), referred to as \"Blueberry\" in th Calendar UI. |\n| `GREEN` | `Enum` | Green (`\"10\"`), referred to as \"Basil\" in th Calendar UI. |\n| `RED` | `Enum` | Red (`\"11\"`), referred to as \"Tomato\" in th Calendar UI. |"]]