Enum EventColor
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
事件颜色
表示日历服务中提供的命名活动颜色的枚举。
如需调用枚举,您可以调用其父类、名称和属性。例如
CalendarApp.EventColor.PALE_BLUE
。
属性
属性 | 类型 | 说明 |
PALE_BLUE | Enum |
浅蓝色 ("1" ),在日历界面中称为“孔雀蓝”。 |
PALE_GREEN | Enum |
淡绿色 ("2" ),在日历界面中称为“鼠尾草”。 |
MAUVE | Enum |
紫红色 ("3" ),在日历界面中称为“葡萄色”。 |
PALE_RED | Enum |
浅红色 ("4" ),在日历界面中称为“火烈鸟”。 |
YELLOW | Enum |
黄色 ("5" ),在 Google 日历界面中称为“香蕉”。 |
ORANGE | Enum |
橙色 ("6" ),在日历界面中称为“橘红”。 |
CYAN | Enum |
青色 ("7" ),在日历界面中称为“淡紫色”。 |
GRAY | Enum |
灰色 ("8" ),在日历界面中称为“石墨”。 |
BLUE | Enum |
蓝色 ("9" ),在日历界面中称为“蓝莓”。 |
GREEN | Enum |
绿色 ("10" ),在日历界面中称为“罗勒”。 |
RED | Enum |
红色 ("11" ),在日历界面中称为“番茄”。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):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. |"]]