Enum VerticalAlignment
Stay organized with collections
Save and categorize content based on your preferences.
VerticalAlignment
An enum that sets the vertical alignment of widgets in a column.
Available for Google Chat apps and Google Workspace add-ons.
To call an enum, you call its parent class, name, and property. For example,
CardService.VerticleAlignment.TOP
.
Properties
Property | Type | Description |
CENTER | Enum | Vertically places the content at the center of the container. Default. |
TOP | Enum | Vertically places the content at the top of the container. |
BOTTOM | Enum | Vertically places the content at the bottom of the container. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-30 UTC.
[null,null,["Last updated 2025-01-30 UTC."],[],["`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,[]]