Enum VerticalAlignment
การจัดวางแนวตั้ง
อาร์เรย์แบบจำกัดที่กำหนดการจัดแนวแนวตั้งของวิดเจ็ตในคอลัมน์
พร้อมใช้งานสำหรับแอป Google Chat และส่วนเสริมของ Google Workspace
หากต้องการเรียกใช้ enum ให้เรียกคลาสหลัก ชื่อ และพร็อพเพอร์ตี้ของ enum นั้น เช่น
CardService.VerticleAlignment.TOP
พร็อพเพอร์ตี้
พร็อพเพอร์ตี้ | ประเภท | คำอธิบาย |
CENTER | Enum | จัดวางเนื้อหาไว้ตรงกลางของคอนเทนเนอร์ในแนวตั้ง ค่าเริ่มต้น |
TOP | Enum | วางเนื้อหาไว้ที่ด้านบนของคอนเทนเนอร์ในแนวตั้ง |
BOTTOM | Enum | วางเนื้อหาแนวตั้งที่ด้านล่างของคอนเทนเนอร์ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-01-30 UTC
[null,null,["อัปเดตล่าสุด 2025-01-30 UTC"],[[["`VerticalAlignment` is an enum used to set the vertical alignment of widgets within a column in Google Chat apps and Google Workspace Add-ons."],["It offers three alignment options: `CENTER` (default), `TOP`, and `BOTTOM`, allowing you to position content vertically within a container."],["To use it, call the enum through its parent class, name, and property, like this: `CardService.VerticleAlignment.TOP`."]]],["`VerticalAlignment` is an enum used in Google Chat apps and Workspace add-ons to control widget placement within a column. It offers three properties: `CENTER` (default), which centers content vertically; `TOP`, which aligns content to the top; and `BOTTOM`, which aligns content to the bottom. To use these properties, call `CardService.VerticleAlignment` followed by the desired property (e.g., `CardService.VerticleAlignment.TOP`). This allows for precise vertical positioning of elements.\n"]]