شماره ای که نشان دهنده انواع پشتیبانی شده از هم ترازی تصویر است. انواع تراز را می توان از FormApp.Alignment دسترسی داشت.
برای فراخوانی یک enum، کلاس والد، نام و ویژگی آن را فراخوانی می کنید. برای مثال، 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);
تاریخ آخرین بهروزرسانی 2025-01-14 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-01-14 بهوقت ساعت هماهنگ جهانی."],[[["`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."]]],[]]