Оптимизируйте свои подборки Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Выравнивание
Перечисление, представляющее поддерживаемые типы выравнивания изображений. Доступ к типам выравнивания можно получить из Form App.Alignment .
Чтобы вызвать перечисление, вы вызываете его родительский класс, имя и свойство. Например, 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);
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-07-25 UTC."],[[["\u003cp\u003e\u003ccode\u003eFormApp.Alignment\u003c/code\u003e is an enum used to define the alignment of images within a Google Form.\u003c/p\u003e\n"],["\u003cp\u003eImage alignment options include \u003ccode\u003eLEFT\u003c/code\u003e, \u003ccode\u003eCENTER\u003c/code\u003e, and \u003ccode\u003eRIGHT\u003c/code\u003e, which can be accessed using \u003ccode\u003eFormApp.Alignment.LEFT\u003c/code\u003e, \u003ccode\u003eFormApp.Alignment.CENTER\u003c/code\u003e, and \u003ccode\u003eFormApp.Alignment.RIGHT\u003c/code\u003e respectively.\u003c/p\u003e\n"],["\u003cp\u003eYou can set the alignment of an image item in your form using the \u003ccode\u003esetAlignment()\u003c/code\u003e method and passing in the desired \u003ccode\u003eFormApp.Alignment\u003c/code\u003e property.\u003c/p\u003e\n"]]],[],null,["Alignment\n\nAn enum representing the supported types of image alignment. Alignment types can be accessed from\n[FormApp.Alignment](/apps-script/reference/forms/form-app#Alignment).\n\nTo call an enum, you call its parent class, name, and property. For example, `\nFormApp.Alignment.LEFT`.\n\n```javascript\n// Open a form by ID and add a new image item with alignment\nconst form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');\nconst img = UrlFetchApp.fetch('https://www.google.com/images/srpr/logo4w.png');\nform.addImageItem().setImage(img).setAlignment(FormApp.Alignment.CENTER);\n``` \n\nProperties\n\n| Property | Type | Description |\n|----------|--------|------------------------------------------------|\n| `LEFT` | `Enum` | Align the image to the left side of the form. |\n| `CENTER` | `Enum` | Align the image to the center of the form. |\n| `RIGHT` | `Enum` | Align the image to the right side of the form. |"]]