Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Perataan
Enum yang mewakili jenis perataan gambar yang didukung. Jenis perataan dapat diakses dari
FormApp.Alignment.
Untuk memanggil enum, Anda memanggil class induk, nama, dan propertinya. Misalnya,
FormApp.Alignment.LEFT.
// Open a form by ID and add a new image item with alignmentconstform=FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');constimg=UrlFetchApp.fetch('https://www.google.com/images/srpr/logo4w.png');form.addImageItem().setImage(img).setAlignment(FormApp.Alignment.CENTER);
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2024-12-22 UTC."],[[["`FormApp.Alignment` is an enum used to define the alignment of images within a Google Form."],["Image alignment options include `LEFT`, `CENTER`, and `RIGHT`, which can be accessed using `FormApp.Alignment.LEFT`, `FormApp.Alignment.CENTER`, and `FormApp.Alignment.RIGHT` respectively."],["You can set the alignment of an image item in your form using the `setAlignment()` method and passing in the desired `FormApp.Alignment` property."]]],[]]