Enum UpdateDraftBodyType
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Cập nhậtBản nhápNội dungLoại
Giá trị enum chỉ định loại của UpdateDraftBodyAction
.
Để gọi một enum, bạn gọi lớp mẹ, tên và thuộc tính của enum đó. Ví dụ:
CardService.UpdateDraftBodyType.IN_PLACE_INSERT
.
Thuộc tính
Thuộc tính | Loại | Mô tả |
IN_PLACE_INSERT | Enum | Mặc định. Thao tác cập nhật sẽ chèn nội dung tại vị trí con trỏ hiện tại, thay thế mọi nội dung đã chọn. |
INSERT_AT_START | Enum | Hành động cập nhật sẽ chèn nội dung vào đầu nội dung thư. |
INSERT_AT_END | Enum | Hành động cập nhật sẽ chèn nội dung vào cuối nội dung thư. Nếu có chữ ký email, trong Gmail trên web, thao tác cập nhật sẽ chèn sau chữ ký của người dùng. Trong ứng dụng Gmail dành cho thiết bị di động, thao tác cập nhật sẽ chèn trước chữ ký của người dùng. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\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. |"]]