Class UpdateDraftBodyAction
Cập nhậtBản nhápNội dungThao tác
Cập nhật nội dung email nháp.
Tài liệu chi tiết
addUpdateContent(content, contentType)
Thêm nội dung đã chỉ định vào nội dung thư nháp. Loại của content
được chỉ định bằng ContentType
.
Tham số
Tên | Loại | Mô tả |
content | String | Nội dung cần chèn vào email nháp. |
contentType | ContentType | Loại nội dung của nội dung cần chèn. |
Cầu thủ trả bóng
UpdateDraftBodyAction
– Đối tượng này, để tạo chuỗi.
setUpdateType(updateType)
Đặt UpdateDraftBodyType
của thao tác cập nhật này trên nội dung thư nháp. Ví dụ: chèn nội dung ở đầu, cuối hoặc vị trí con trỏ của nội dung thư nháp.
Tham số
Tên | Loại | Mô tả |
updateType | UpdateDraftBodyType | Loại nội dung cập nhật sẽ được thực hiện trên thư nháp. |
Cầu thủ trả bóng
UpdateDraftBodyAction
– Đối tượng này, để tạo chuỗi.
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: 2024-12-03 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-12-03 UTC."],[[["`UpdateDraftBodyAction` updates the body of an email draft."],["It provides methods to add content (`addUpdateContent`) and set the update type (`setUpdateType`)."],["`addUpdateContent` inserts specified content, determined by `ContentType`, into the email draft."],["`setUpdateType` defines how the content is inserted, such as at the beginning, end, or cursor position, using `UpdateDraftBodyType`."]]],["`UpdateDraftBodyAction` modifies an email draft's body. It provides two key methods: `addUpdateContent` and `setUpdateType`. `addUpdateContent` inserts specified content, defined by a string and content type, into the draft. `setUpdateType` determines where the content is inserted, such as the start, end, or cursor position, using `UpdateDraftBodyType`. Both methods return the `UpdateDraftBodyAction` object, enabling method chaining.\n"]]