Enum VerticalAlignment
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
تراز عمودی enum که تراز عمودی ویجت ها را در یک ستون تنظیم می کند.
برای برنامههای Google Chat و افزونههای Google Workspace موجود است.
برای فراخوانی یک enum، کلاس والد، نام و ویژگی آن را فراخوانی می کنید. به عنوان مثال، CardService.VerticleAlignment.TOP
.
خواص
اموال | تایپ کنید | توضیحات |
---|
CENTER | Enum | به صورت عمودی محتوا را در مرکز ظرف قرار می دهد. پیش فرض |
TOP | Enum | محتوا را به صورت عمودی در بالای ظرف قرار می دهد. |
BOTTOM | Enum | به صورت عمودی محتوا را در پایین ظرف قرار می دهد. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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. |"]]