Enum UpdateDraftBodyType
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
更新草稿正文类型
用于指定 UpdateDraftBodyAction
类型的枚举值。
如需调用枚举,您可以调用其父类、名称和属性。例如
CardService.UpdateDraftBodyType.IN_PLACE_INSERT
。
属性
属性 | 类型 | 说明 |
IN_PLACE_INSERT | Enum | 默认。更新操作会在当前光标位置插入内容,替换任何所选内容。 |
INSERT_AT_START | Enum | 更新操作会在邮件正文开头插入内容。 |
INSERT_AT_END | Enum | 更新操作会在邮件正文末尾插入内容。如果存在电子邮件签名,在网页版 Gmail 中,更新操作会插入在用户的签名后面。在 Gmail 移动应用中,更新操作会插入在用户签名之前。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eUpdateDraftBodyType\u003c/code\u003e is an enum used within \u003ccode\u003eUpdateDraftBodyAction\u003c/code\u003e to specify how the draft body of a message is modified.\u003c/p\u003e\n"],["\u003cp\u003eIt offers three options: \u003ccode\u003eIN_PLACE_INSERT\u003c/code\u003e (default, replaces selected content or inserts at cursor), \u003ccode\u003eINSERT_AT_START\u003c/code\u003e (inserts at the beginning), and \u003ccode\u003eINSERT_AT_END\u003c/code\u003e (inserts at the end, respecting email signatures).\u003c/p\u003e\n"],["\u003cp\u003eTo use these options, call them using the format: \u003ccode\u003eCardService.UpdateDraftBodyType.[Property Name]\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum UpdateDraftBodyType\n\nUpdateDraftBodyType\n\nAn enum value that specifies the type of an [UpdateDraftBodyAction](/apps-script/reference/card-service/update-draft-body-action).\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.UpdateDraftBodyType.IN_PLACE_INSERT`. \n\n### Properties\n\n| Property | Type | Description |\n|-------------------|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `IN_PLACE_INSERT` | `Enum` | Default. Update actions insert content at the current cursor position, replacing any selected content. |\n| `INSERT_AT_START` | `Enum` | Update actions insert content at the start of message body. |\n| `INSERT_AT_END` | `Enum` | Update actions insert content at the end of the message body. If an email signature is present, in Gmail on the web, the update action inserts after the user's signature. In the Gmail mobile app, the update action inserts before the user's signature. |"]]