Class UpdateDraftBodyAction
تعديلالمسودةالنصالإجراء
تعديل نص مسودة الرسالة الإلكترونية
مستندات تفصيلية
addUpdateContent(content, contentType)
تضيف هذه السمة المحتوى المحدّد إلى نص المسودة. يتم تحديد نوع content
باستخدام
ContentType
.
المعلَمات
الاسم | النوع | الوصف |
content | String | المحتوى المطلوب إدراجه في مسودة الرسالة الإلكترونية. |
contentType | ContentType | نوع المحتوى الذي سيتم إدراجه |
الإرجاع
UpdateDraftBodyAction
: هذا العنصر، لإنشاء سلسلة.
setUpdateType(updateType)
تُستخدَم لضبط UpdateDraftBodyType
للإجراء "تعديل" هذا في نص المسودة. على سبيل المثال،
إدراج محتوى في بداية مسودة النص أو نهايته أو في موضع المؤشر
المعلَمات
الاسم | النوع | الوصف |
updateType | UpdateDraftBodyType | نوع التعديل الذي سيتم إجراؤه على مسودة رسالة إلكترونية. |
الإرجاع
UpdateDraftBodyAction
: هذا العنصر، لإنشاء سلسلة.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-12-03 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-12-03 (حسب التوقيت العالمي المتفَّق عليه)"],[[["`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"]]