Enum CopyPasteType
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
コピー貼り付け入力
使用可能な特殊な貼り付けの種類を列挙します。
列挙型を呼び出すには、その親クラス、名前、プロパティを呼び出します。たとえば、
SpreadsheetApp.CopyPasteType.PASTE_NORMAL
です。
プロパティ
プロパティ | タイプ | 説明 |
PASTE_NORMAL | Enum | 値、数式、書式、結合を貼り付ける。 |
PASTE_NO_BORDERS | Enum | 値、数式、書式、結合を貼り付けますが、境界は貼り付けません。 |
PASTE_FORMAT | Enum | 書式のみを貼り付けます。 |
PASTE_FORMULA | Enum | 数式のみを貼り付けます。 |
PASTE_DATA_VALIDATION | Enum | データの入力規則のみを貼り付けます。 |
PASTE_VALUES | Enum | 書式、数式、結合を除いた値のみを貼り付けます。 |
PASTE_CONDITIONAL_FORMATTING | Enum | 色ルールのみを貼り付けます。 |
PASTE_COLUMN_WIDTHS | Enum | 列幅のみを貼り付けます。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003e\u003ccode\u003eCopyPasteType\u003c/code\u003e is used to specify the content pasted from the clipboard in Google Apps Script.\u003c/p\u003e\n"],["\u003cp\u003eIt's an enumeration within the \u003ccode\u003eSpreadsheetApp\u003c/code\u003e class, called using \u003ccode\u003eSpreadsheetApp.CopyPasteType.PROPERTY\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eOptions include pasting values, formulas, formats, validations, or combinations thereof, as well as only pasting column widths or conditional formatting.\u003c/p\u003e\n"]]],[],null,["# Enum CopyPasteType\n\nCopyPasteType\n\nAn enumeration of possible special paste types.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSpreadsheetApp.CopyPasteType.PASTE_NORMAL`. \n\n### Properties\n\n| Property | Type | Description |\n|--------------------------------|--------|-----------------------------------------------------------------|\n| `PASTE_NORMAL` | `Enum` | Paste values, formulas, formats and merges. |\n| `PASTE_NO_BORDERS` | `Enum` | Paste values, formulas, formats and merges but without borders. |\n| `PASTE_FORMAT` | `Enum` | Paste the format only. |\n| `PASTE_FORMULA` | `Enum` | Paste the formulas only. |\n| `PASTE_DATA_VALIDATION` | `Enum` | Paste the data validation only. |\n| `PASTE_VALUES` | `Enum` | Paste the values ONLY without formats, formulas or merges. |\n| `PASTE_CONDITIONAL_FORMATTING` | `Enum` | Paste the color rules only. |\n| `PASTE_COLUMN_WIDTHS` | `Enum` | Paste the column widths only. |"]]