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 Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 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. |"]]