Enum VerticalAlignment
垂直对齐
用于设置列中微件的垂直对齐方式的枚举。
适用于 Google Chat 应用和 Google Workspace 插件。
如需调用枚举,您可以调用其父类、名称和属性。例如
CardService.VerticleAlignment.TOP
。
属性
属性 | 类型 | 说明 |
CENTER | Enum | 将内容垂直放置在容器的中心。默认。 |
TOP | Enum | 将内容垂直放置在容器顶部。 |
BOTTOM | Enum | 将内容垂直放置在容器底部。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-30。
[null,null,["最后更新时间 (UTC):2025-01-30。"],[[["`VerticalAlignment` is an enum used to set the vertical alignment of widgets within a column in Google Chat apps and Google Workspace Add-ons."],["It offers three alignment options: `CENTER` (default), `TOP`, and `BOTTOM`, allowing you to position content vertically within a container."],["To use it, call the enum through its parent class, name, and property, like this: `CardService.VerticleAlignment.TOP`."]]],["`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"]]