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 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\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. |"]]