サポートされている画像配置のタイプを表す列挙型。配置タイプには以下からアクセスできます
FormApp.Alignment。
列挙型を呼び出すには、その親クラス、名前、プロパティを呼び出します。たとえば、
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);
プロパティ
| プロパティ | タイプ | 説明 |
|---|---|---|
LEFT | Enum | 画像をフォームの左側に揃えます。 |
CENTER | Enum | 画像をフォームの中央に揃えます。 |
RIGHT | Enum | 画像をフォームの右側に揃えます。 |