Enum CopyPasteType
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
KopiujWklejWpisz
Wyliczenie możliwych typów wklejania.
Aby wywołać enum, wywołaj jego klasę nadrzędną, nazwę i właściwość. Na przykład:
SpreadsheetApp.CopyPasteType.PASTE_NORMAL
.
Właściwości
Właściwość | Typ | Opis |
PASTE_NORMAL | Enum | Wklejać wartości, formuły, formaty i złączenia. |
PASTE_NO_BORDERS | Enum | Wkleja wartości, formuły, formaty i scalania, ale bez ramek. |
PASTE_FORMAT | Enum | Wklej tylko format. |
PASTE_FORMULA | Enum | Wklej tylko formuły. |
PASTE_DATA_VALIDATION | Enum | Wklej tylko reguły sprawdzania poprawności danych. |
PASTE_VALUES | Enum | Wklej tylko wartości bez formatów, formuł i scaleń. |
PASTE_CONDITIONAL_FORMATTING | Enum | Wklej tylko reguły kolorów. |
PASTE_COLUMN_WIDTHS | Enum | Wklej tylko szerokości kolumn. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]