AI-generated Key Takeaways
-
EventColor
is an enum used in Google Apps Script to represent the colors available for calendar events. -
You can access these colors by calling
CalendarApp.EventColor
followed by the specific color property, likeCalendarApp.EventColor.PALE_BLUE
. -
Each
EventColor
property corresponds to a specific color with both a numerical value and a user-friendly name displayed in the Calendar UI.
An enum representing the named event colors available in the Calendar service.
To call an enum, you call its parent class, name, and property. For example,
CalendarApp.EventColor.PALE_BLUE
.
Properties
Property | Type | Description |
---|---|---|
PALE_BLUE | Enum |
"1" ), referred to as "Peacock" in th Calendar UI. |
PALE_GREEN | Enum |
"2" ), referred to as "Sage" in th Calendar UI. |
MAUVE | Enum |
"3" ),, referred to as "Grape" in th Calendar UI. |
PALE_RED | Enum |
"4" ), referred to as "Flamingo" in th Calendar UI. |
YELLOW | Enum |
"5" ), referred to as "Banana" in th Calendar UI. |
ORANGE | Enum |
"6" ), referred to as "Tangerine" in th Calendar UI. |
CYAN | Enum |
"7" ), referred to as "Lavender" in th Calendar UI. |
GRAY | Enum |
"8" ), referred to as "Graphite" in th Calendar UI. |
BLUE | Enum |
"9" ), referred to as "Blueberry" in th Calendar UI. |
GREEN | Enum |
"10" ), referred to as "Basil" in th Calendar UI. |
RED | Enum |
"11" ), referred to as "Tomato" in th Calendar UI. |