Enum EventColor
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เหตุการณ์สี
อาร์เรย์แบบจำกัดที่แสดงสีของกิจกรรมที่มีชื่อซึ่งพร้อมใช้งานในบริการปฏิทิน
หากต้องการเรียกใช้ enum ให้เรียกคลาสหลัก ชื่อ และพร็อพเพอร์ตี้ของ enum นั้น เช่น
CalendarApp.EventColor.PALE_BLUE
พร็อพเพอร์ตี้
พร็อพเพอร์ตี้ | ประเภท | คำอธิบาย |
PALE_BLUE | Enum |
น้ำเงินอ่อน ("1" ) หรือที่เรียกว่า "นกยูง" ใน UI ของปฏิทิน |
PALE_GREEN | Enum |
เขียวอ่อน ("2" ) หรือที่เรียกว่า "เขียว Sage" ใน UI ของปฏิทิน |
MAUVE | Enum |
สีม่วง ("3" ) หรือที่เรียกว่า "องุ่น" ใน UI ของปฏิทิน |
PALE_RED | Enum |
สีแดงอ่อน ("4" ) หรือที่เรียกว่า "ฟลามิงโก" ใน UI ของปฏิทิน |
YELLOW | Enum |
สีเหลือง ("5" ) หรือที่เรียกว่า "กล้วย" ใน UI ของปฏิทิน |
ORANGE | Enum |
ส้ม ("6" ) หรือที่เรียกว่า "ส้มจีน" ใน UI ของปฏิทิน |
CYAN | Enum |
สีฟ้าอมเขียว ("7" ) หรือที่เรียกว่า "ลาเวนเดอร์" ใน UI ของปฏิทิน |
GRAY | Enum |
เทา ("8" ) หรือที่เรียกว่า "กราไฟต์" ใน UI ของปฏิทิน |
BLUE | Enum |
สีน้ำเงิน ("9" ) หรือที่เรียกว่า "บลูเบอร์รี่" ใน UI ปฏิทิน |
GREEN | Enum |
สีเขียว ("10" ) หรือที่เรียกว่า "Basil" ใน UI ของปฏิทิน |
RED | Enum |
สีแดง ("11" ) หรือที่เรียกว่า "มะเขือเทศ" ใน UI ปฏิทิน |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 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. |"]]