Google 會運用 AI 技術將內容翻譯成您偏好的語言,但可能會出錯。
Enum HorizontalSizeStyle
透過集合功能整理內容
您可以依據偏好儲存及分類內容。
HorizontalSizeStyle
這個列舉會設定小工具填滿欄空間的方式。
適用於 Google Chat 擴充應用程式和 Google Workspace 外掛程式。
如要呼叫列舉,請呼叫其父項類別、名稱和屬性。例如
CardService.HorizontalSizeStyle.FILL_AVAILABLE_SPACE。
屬性
| 屬性 | 類型 | 說明 |
FILL_AVAILABLE_SPACE | Enum | 將 Widget 的大小設為填滿 Column 的可用水平空間。如果其他欄有更多空間,小工具可以填滿超過自身欄位的空間。預設值。 |
FILL_MINIMUM_SPACE | Enum | 調整 Widget 大小,盡量減少 Column 中的水平空間。
所需空間下限取決於小工具的大小。如果小工具小於資料欄空間,不會展開填滿空間。 |
[null,null,["上次更新時間: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"]]