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-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003e\u003ccode\u003eVerticalAlignment\u003c/code\u003e is an enum used to set the vertical alignment of widgets within a column in Google Chat apps and Google Workspace Add-ons.\u003c/p\u003e\n"],["\u003cp\u003eIt offers three alignment options: \u003ccode\u003eCENTER\u003c/code\u003e (default), \u003ccode\u003eTOP\u003c/code\u003e, and \u003ccode\u003eBOTTOM\u003c/code\u003e, allowing you to position content vertically within a container.\u003c/p\u003e\n"],["\u003cp\u003eTo use it, call the enum through its parent class, name, and property, like this: \u003ccode\u003eCardService.VerticleAlignment.TOP\u003c/code\u003e.\u003c/p\u003e\n"]]],["`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"],null,["# Enum VerticalAlignment\n\nVerticalAlignment\n\nAn enum that sets the vertical alignment of widgets in a column.\n\nAvailable for Google Chat apps and Google Workspace add-ons.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.VerticleAlignment.TOP`. \n\n### Properties\n\n| Property | Type | Description |\n|----------|--------|------------------------------------------------------------------------|\n| `CENTER` | `Enum` | Vertically places the content at the center of the container. Default. |\n| `TOP` | `Enum` | Vertically places the content at the top of the container. |\n| `BOTTOM` | `Enum` | Vertically places the content at the bottom of the container. |"]]