Enum EventColor
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
事件顏色
代表日曆服務中可用的命名活動顏色的列舉。
如要呼叫列舉,請呼叫其父項類別、名稱和屬性。例如
CalendarApp.EventColor.PALE_BLUE
。
屬性
屬性 | 類型 | 說明 |
PALE_BLUE | Enum |
淡藍色 ("1" ),在日曆 UI 中稱為「孔雀」。 |
PALE_GREEN | Enum |
灰綠色 ("2" ),在日曆 UI 中稱為「Sage」。 |
MAUVE | Enum |
Mauve ("3" ),在 Google 日曆 UI 中稱為「葡萄色」。 |
PALE_RED | Enum |
淡紅色 ("4" ),在日曆 UI 中稱為「火鶴」。 |
YELLOW | Enum |
黃色 ("5" ),在 Google 日曆 UI 中稱為「香蕉」。 |
ORANGE | Enum |
橘色 ("6" ),在 Google 日曆 UI 中稱為「橘色」。 |
CYAN | Enum |
青色 ("7" ),在日曆 UI 中稱為「薰衣草色」。 |
GRAY | Enum |
灰色 ("8" ),在日曆 UI 中稱為「Graphite」。 |
BLUE | Enum |
藍色 ("9" ),在日曆 UI 中稱為「藍莓」。 |
GREEN | Enum |
綠色 ("10" ),在日曆 UI 中稱為「Basil」。 |
RED | Enum |
紅色 ("11" ),在日曆 UI 中稱為「番茄形」。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\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. |"]]