Enum CopyPasteType
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
CopiarPegarEscribir
Es una enumeración de los posibles tipos de pegado especiales.
Para llamar a una enumeración, debes llamar a su clase superior, nombre y propiedad. Por ejemplo,
SpreadsheetApp.CopyPasteType.PASTE_NORMAL
.
Propiedades
Propiedad | Tipo | Descripción |
PASTE_NORMAL | Enum | Pega valores, fórmulas, formatos y combinaciones. |
PASTE_NO_BORDERS | Enum | Pega valores, fórmulas, formatos y combinaciones, pero sin bordes. |
PASTE_FORMAT | Enum | Pega solo el formato. |
PASTE_FORMULA | Enum | Pega solo las fórmulas. |
PASTE_DATA_VALIDATION | Enum | Solo pega la validación de datos. |
PASTE_VALUES | Enum | Pega SOLO los valores sin formatos, fórmulas ni combinaciones. |
PASTE_CONDITIONAL_FORMATTING | Enum | Pega solo las reglas de color. |
PASTE_COLUMN_WIDTHS | Enum | Pega solo los anchos de columna. |
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-26 (UTC)
[null,null,["Última actualización: 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. |"]]