Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Enum HorizontalSizeStyle
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HorizontalSizeStyle
一种枚举,用于设置 widget 如何填充列的空间。
适用于 Google Chat 应用和 Google Workspace 插件。
如需调用枚举,请调用其父类、名称和属性。例如,
CardService.HorizontalSizeStyle.FILL_AVAILABLE_SPACE。
属性
| 属性 | 类型 | 说明 |
FILL_AVAILABLE_SPACE | Enum | 调整 Widget 的大小,以填充 Column 的可用横向空间。如果另一列有更多空间,widget 可以填充超出其自身列的空间。
默认值。 |
FILL_MINIMUM_SPACE | Enum | 调整 Widget 的大小,以填充 Column 中最少的横向空间。
最小空间基于 widget 的大小。如果 widget 小于列的空间,则不会展开即可填充空间。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-04-13。
[null,null,["最后更新时间 (UTC):2026-04-13。"],[],["`HorizontalSizeStyle` is an enum controlling widget sizing within a column in Google Chat apps and Workspace add-ons. It has two properties: `FILL_AVAILABLE_SPACE`, which is the default and allows a widget to occupy all horizontal space, even extending beyond its column if another has more space, and `FILL_MINIMUM_SPACE`, where the widget uses only the minimum space it requires and will not expand to fill the column.\n"]]