Enum WrapStyle
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
WrapStyle
用于为列中内容设置换行样式的枚举。
适用于 Google Chat 应用和 Google Workspace 插件。
如需调用枚举,您可以调用其父类、名称和属性。例如
CardService.WrapStyle.WRAP
。
属性
属性 | 类型 | 说明 |
NOWRAP | Enum | 不换行。默认。 |
WRAP | Enum | 为列中的所有 widget 换行内容。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):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. |"]]