Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Enum HorizontalSizeStyle
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
HorizontalSizeStyle
這個列舉會設定小工具填滿欄空間的方式。
適用於 Google Chat 擴充應用程式和 Google Workspace 外掛程式。
如要呼叫列舉,請呼叫其父項類別、名稱和屬性。例如
CardService.HorizontalSizeStyle.FILL_AVAILABLE_SPACE。
屬性
| 屬性 | 類型 | 說明 |
FILL_AVAILABLE_SPACE | Enum | 將 Widget 的大小設為填滿 Column 的可用水平空間。如果其他欄有更多空間,小工具可以填滿超過自身欄位的空間。預設值。 |
FILL_MINIMUM_SPACE | Enum | 調整 Widget 大小,盡量減少 Column 中的水平空間。
所需空間下限取決於小工具的大小。如果小工具小於資料欄空間,不會展開填滿空間。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-04-13 (世界標準時間)。
[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"]]