Enum WrapStrategy
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
WrapStrategy
Enumerasi strategi yang digunakan untuk menangani penggabungan teks sel.
Untuk memanggil enum, Anda memanggil class induk, nama, dan propertinya. Misalnya,
SpreadsheetApp.WrapStrategy.WRAP
.
Properti
Properti | Jenis | Deskripsi |
WRAP | Enum | Gabungkan baris yang lebih panjang dari lebar sel ke baris baru. Satu kata yang lebih panjang
dari satu baris akan digabungkan pada tingkat karakter. |
OVERFLOW | Enum | Baris yang meluap ke sel berikutnya, selama sel tersebut kosong. Jika sel berikutnya
tidak kosong, perilakunya sama seperti CLIP . |
CLIP | Enum | Memotong baris yang lebih panjang dari lebar sel. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eWrapStrategy\u003c/code\u003e is used to control how text wraps within a cell in Google Sheets.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eWRAP\u003c/code\u003e wraps text to new lines within the cell, \u003ccode\u003eOVERFLOW\u003c/code\u003e extends text to the next cell if empty, and \u003ccode\u003eCLIP\u003c/code\u003e cuts off overflowing text.\u003c/p\u003e\n"],["\u003cp\u003eAccess these options using \u003ccode\u003eSpreadsheetApp.WrapStrategy\u003c/code\u003e followed by the desired property like \u003ccode\u003eWRAP\u003c/code\u003e, \u003ccode\u003eOVERFLOW\u003c/code\u003e, or \u003ccode\u003eCLIP\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum WrapStrategy\n\nWrapStrategy\n\nAn enumeration of the strategies used to handle cell text wrapping.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSpreadsheetApp.WrapStrategy.WRAP`. \n\n### Properties\n\n| Property | Type | Description |\n|------------|--------|----------------------------------------------------------------------------------------------------------------------------------------------|\n| `WRAP` | `Enum` | Wrap lines that are longer than the cell width onto a new line. Single words that are longer than a line are wrapped at the character level. |\n| `OVERFLOW` | `Enum` | Overflow lines into the next cell, so long as that cell is empty. If the next cell over is non-empty, this behaves the same as `CLIP`. |\n| `CLIP` | `Enum` | Clip lines that are longer than the cell width. |"]]