Enum Color
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สี
enum แสดงสีที่มีชื่อที่สามารถใช้ได้ในรูปภาพแผนที่
หากต้องการเรียก enum คุณจะต้องเรียกคลาส ชื่อ และพร็อพเพอร์ตี้ระดับบนสุด เช่น
Maps.Color.BLACK
พร็อพเพอร์ตี้
พร็อพเพอร์ตี้ | Type | คำอธิบาย |
BLACK | Enum | |
BROWN | Enum | |
GREEN | Enum | |
PURPLE | Enum | |
YELLOW | Enum | |
BLUE | Enum | |
GRAY | Enum | |
ORANGE | Enum | |
RED | Enum | |
WHITE | Enum | |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003e\u003ccode\u003eMaps.Color\u003c/code\u003e is an enum representing named colors for use in map images.\u003c/p\u003e\n"],["\u003cp\u003eAvailable color options include \u003ccode\u003eBLACK\u003c/code\u003e, \u003ccode\u003eBROWN\u003c/code\u003e, \u003ccode\u003eGREEN\u003c/code\u003e, \u003ccode\u003ePURPLE\u003c/code\u003e, \u003ccode\u003eYELLOW\u003c/code\u003e, \u003ccode\u003eBLUE\u003c/code\u003e, \u003ccode\u003eGRAY\u003c/code\u003e, \u003ccode\u003eORANGE\u003c/code\u003e, \u003ccode\u003eRED\u003c/code\u003e, and \u003ccode\u003eWHITE\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eTo use a color, call it using the format \u003ccode\u003eMaps.Color.[ColorName]\u003c/code\u003e, for example, \u003ccode\u003eMaps.Color.BLACK\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum Color\n\nColor\n\nAn enum representing the named colors available to use in map images.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nMaps.Color.BLACK`. \n\n### Properties\n\n| Property | Type | Description |\n|----------|--------|-------------|\n| `BLACK` | `Enum` | |\n| `BROWN` | `Enum` | |\n| `GREEN` | `Enum` | |\n| `PURPLE` | `Enum` | |\n| `YELLOW` | `Enum` | |\n| `BLUE` | `Enum` | |\n| `GRAY` | `Enum` | |\n| `ORANGE` | `Enum` | |\n| `RED` | `Enum` | |\n| `WHITE` | `Enum` | |"]]