Énumération représentant les types d'alignement d'image acceptés. Les types d'alignement sont accessibles depuis Form
.
Pour appeler un énumération, vous devez appeler sa classe parente, son nom et sa propriété. Par exemple,
FormApp.Alignment.LEFT
.
// Open a form by ID and add a new image item with alignment const form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz'); const img = UrlFetchApp.fetch('https://www.google.com/images/srpr/logo4w.png'); form.addImageItem().setImage(img).setAlignment(FormApp.Alignment.CENTER);
Propriétés
Propriété | Type | Description |
---|---|---|
LEFT | Enum | Alignez l'image sur le côté gauche du formulaire. |
CENTER | Enum | Alignez l'image au centre du formulaire. |
RIGHT | Enum | Alignez l'image sur le côté droit du formulaire. |