Enum Color
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
顏色
列舉代表 Google 日曆服務提供的具名顏色。
如要呼叫列舉,您可以呼叫其父項類別、名稱和屬性。例如
CalendarApp.Color.BLUE
。
屬性
屬性 | 類型 | 說明 |
BLUE | Enum |
藍色 (#2952A3 )。 |
BROWN | Enum |
棕色 (#8D6F47 )。 |
CHARCOAL | Enum |
石墨黑 (#4E5D6C )。 |
CHESTNUT | Enum |
栗色 (#865A5A )。 |
GRAY | Enum |
灰色 (#5A6986 )。 |
GREEN | Enum |
綠色 (#0D7813 )。 |
INDIGO | Enum |
靛藍色 (#5229A3 )。 |
LIME | Enum |
萊姆綠 (#528800 )。 |
MUSTARD | Enum |
鬍子 (#88880E )。 |
OLIVE | Enum |
橄欖綠 (#6E6E41 )。 |
ORANGE | Enum |
橘色 (#BE6D00 )。 |
PINK | Enum |
粉紅色 (#B1365F )。 |
PLUM | Enum |
紫紅色 (#705770 )。 |
PURPLE | Enum |
紫色 (#7A367A )。 |
RED | Enum |
紅色 (#A32929 )。 |
RED_ORANGE | Enum |
紅到橘 (#B1440E )。 |
SEA_BLUE | Enum |
海水藍 (#29527A )。 |
SLATE | Enum |
插入畫面 (#4A716C )。 |
TEAL | Enum |
藍綠色 (#28754E )。 |
TURQOISE | Enum |
綠松石 (#1B887A )。 |
YELLOW | Enum |
黃色 (#AB8B00 )。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003e\u003ccode\u003eColor\u003c/code\u003e is an enum representing the named colors available within the Calendar service.\u003c/p\u003e\n"],["\u003cp\u003eTo use a color, call it using the format: \u003ccode\u003eCalendarApp.Color.[COLOR_NAME]\u003c/code\u003e, for example, \u003ccode\u003eCalendarApp.Color.BLUE\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe available colors include a variety of options like Blue, Brown, Charcoal, Chestnut, Gray, Green, Indigo, Lime, Mustard, Olive, Orange, Pink, Plum, Purple, Red, Red-Orange, Sea Blue, Slate, Teal, Turquoise, and Yellow, each with their specific hex code.\u003c/p\u003e\n"]]],[],null,["# Enum Color\n\nColor\n\nAn enum representing the named colors available in the Calendar service.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCalendarApp.Color.BLUE`. \n\n### Properties\n\n| Property | Type | Description |\n|--------------|--------|-------------------------|\n| `BLUE` | `Enum` | Blue (`#2952A3`). |\n| `BROWN` | `Enum` | Brown (`#8D6F47`). |\n| `CHARCOAL` | `Enum` | Charcoal (`#4E5D6C`). |\n| `CHESTNUT` | `Enum` | Chestnut (`#865A5A`). |\n| `GRAY` | `Enum` | Gray (`#5A6986`). |\n| `GREEN` | `Enum` | Green (`#0D7813`). |\n| `INDIGO` | `Enum` | Indigo (`#5229A3`). |\n| `LIME` | `Enum` | Lime (`#528800`). |\n| `MUSTARD` | `Enum` | Mustard (`#88880E`). |\n| `OLIVE` | `Enum` | Olive (`#6E6E41`). |\n| `ORANGE` | `Enum` | Orange (`#BE6D00`). |\n| `PINK` | `Enum` | Pink (`#B1365F`). |\n| `PLUM` | `Enum` | Plum (`#705770`). |\n| `PURPLE` | `Enum` | Purple (`#7A367A`). |\n| `RED` | `Enum` | Red (`#A32929`). |\n| `RED_ORANGE` | `Enum` | Red-Orange (`#B1440E`). |\n| `SEA_BLUE` | `Enum` | Sea Blue (`#29527A`). |\n| `SLATE` | `Enum` | Slate (`#4A716C`). |\n| `TEAL` | `Enum` | Teal (`#28754E`). |\n| `TURQOISE` | `Enum` | Turquoise (`#1B887A`). |\n| `YELLOW` | `Enum` | Yellow (`#AB8B00`). |"]]