Enum SwitchControlType
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
SwitchControlType
ประเภทการควบคุมวิดเจ็ต Switch
หากต้องการเรียกใช้ enum ให้เรียกคลาสหลัก ชื่อ และพร็อพเพอร์ตี้ของ enum นั้น เช่น
CardService.SwitchControlType.SWITCH
พร็อพเพอร์ตี้
พร็อพเพอร์ตี้ | ประเภท | คำอธิบาย |
SWITCH | Enum | ตัวควบคุมสไตล์สวิตช์สำหรับวิดเจ็ตสวิตช์ ค่าเริ่มต้น |
CHECK_BOX | Enum | การควบคุมสไตล์ช่องทําเครื่องหมายสําหรับวิดเจ็ตสวิตช์ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003e\u003ccode\u003eSwitchControlType\u003c/code\u003e defines the visual style of a switch widget in Google Apps Script Card Service.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two options: \u003ccode\u003eSWITCH\u003c/code\u003e for a toggle-style control (default) and \u003ccode\u003eCHECK_BOX\u003c/code\u003e for a checkbox-style control.\u003c/p\u003e\n"],["\u003cp\u003eTo use these options, call them using the syntax \u003ccode\u003eCardService.SwitchControlType.SWITCH\u003c/code\u003e or \u003ccode\u003eCardService.SwitchControlType.CHECK_BOX\u003c/code\u003e when creating a switch widget.\u003c/p\u003e\n"]]],[],null,["# Enum SwitchControlType\n\nSwitchControlType\n\nType of a [Switch](/apps-script/reference/card-service/switch) widget control.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.SwitchControlType.SWITCH`. \n\n### Properties\n\n| Property | Type | Description |\n|-------------|--------|-----------------------------------------------------|\n| `SWITCH` | `Enum` | Toggle-styled control for a switch widget. Default. |\n| `CHECK_BOX` | `Enum` | Checkbox-styled control for a switch widget. |"]]