Enum VerticalAlignment
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
יישור אנכי
enum שמגדיר את היישור האנכי של ווידג'טים בעמודה.
הפיצ'ר זמין באפליקציות של Google Chat ובתוספים של Google Workspace.
כדי לקרוא למאפיין enum, צריך לקרוא לכיתה ההורה, לשם ולנכס שלו. לדוגמה,
CardService.VerticleAlignment.TOP
.
מאפיינים
נכס | סוג | תיאור |
CENTER | Enum | הצבת התוכן במרכז הקונטיינר באופן אנכי. ברירת מחדל. |
TOP | Enum | מיקום התוכן בחלק העליון של המאגר באופן אנכי. |
BOTTOM | Enum | הצבת התוכן בכיוון אנכי בתחתית המאגר. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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. |"]]