Enum VerticalAlignment
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
VertikaleAusrichtung
Ein Enum, das die vertikale Ausrichtung von Widgets in einer Spalte festlegt.
Verfügbar für Google Chat-Apps und Google Workspace-Add-ons.
Wenn Sie ein Enum aufrufen möchten, rufen Sie die übergeordnete Klasse, den Namen und die Eigenschaft auf. Beispiel:
CardService.VerticleAlignment.TOP
.
Attribute
Attribut | Typ | Beschreibung |
CENTER | Enum | Der Inhalt wird vertikal in der Mitte des Containers platziert. Standard. |
TOP | Enum | Die Inhalte werden vertikal oben im Container platziert. |
BOTTOM | Enum | Die Inhalte werden vertikal am unteren Rand des Containers platziert. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 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. |"]]