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 | 請僅貼上欄寬。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間: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. |"]]