Énumération représentant les types d'alignement d'image acceptés. Les types d'alignements sont accessibles à partir de FormApp.Alignment
.
Pour appeler une é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 var form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz'); var 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 par rapport au centre du formulaire. |
RIGHT | Enum | Alignez l'image sur le côté droit du formulaire. |