Enum VerticalAlignment
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Alignement vertical
Énumération qui définit l'alignement vertical des widgets dans une colonne.
Disponible pour les applications Google Chat et les modules complémentaires Google Workspace.
Pour appeler un énumération, vous devez appeler sa classe parente, son nom et sa propriété. Par exemple,
CardService.VerticleAlignment.TOP
.
Propriétés
Propriété | Type | Description |
CENTER | Enum | Place le contenu verticalement au centre du conteneur. Par défaut. |
TOP | Enum | Place le contenu verticalement en haut du conteneur. |
BOTTOM | Enum | Place le contenu verticalement en bas du conteneur. |
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[null,null,["Dernière mise à jour le 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. |"]]