Stay organized with collections
Save and categorize content based on your preferences.
Alignment
An enum representing the supported types of image alignment. Alignment types can be accessed from
FormApp.Alignment.
To call an enum, you call its parent class, name, and property. For example,
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);
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-26 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."]]],[]]