Enum WrapStyle
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
WrapStyle
這個列舉會設定資料欄內內容的換行樣式。
適用於 Google Chat 應用程式和 Google Workspace 外掛程式。
如要呼叫列舉,請呼叫其父項類別、名稱和屬性。例如
CardService.WrapStyle.WRAP
。
屬性
屬性 | 類型 | 說明 |
NOWRAP | Enum | 不重疊。預設值。 |
WRAP | Enum | 將資料欄中任何小工具的內容換行。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003e\u003ccode\u003eWrapStyle\u003c/code\u003e is an enum used to control text wrapping within columns in Google Chat apps and Google Workspace Add-ons.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two options: \u003ccode\u003eNOWRAP\u003c/code\u003e (default, no wrapping) and \u003ccode\u003eWRAP\u003c/code\u003e (wraps content within column widgets).\u003c/p\u003e\n"],["\u003cp\u003eTo use it, call the enum through its parent class and name, such as \u003ccode\u003eCardService.WrapStyle.WRAP\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum WrapStyle\n\nWrapStyle\n\nAn enum that sets the wrapping style for content within 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.WrapStyle.WRAP`. \n\n### Properties\n\n| Property | Type | Description |\n|----------|--------|------------------------------------------------|\n| `NOWRAP` | `Enum` | No wrapping. Default. |\n| `WRAP` | `Enum` | Wraps the content for any widgets in a column. |"]]