Enum HorizontalAlignment
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
PerataanHorizontal
Enum yang menentukan perataan horizontal widget.
Untuk memanggil enum, Anda memanggil class induk, nama, dan propertinya. Misalnya,
CardService.HorizontalAlignment.START
.
Properti
Properti | Jenis | Deskripsi |
START | Enum | Sejajarkan widget ke awal sisi kalimat. |
CENTER | Enum | Sejajarkan widget ke tengah. |
END | Enum | Sejajarkan widget ke bagian akhir kalimat. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eHorizontalAlignment\u003c/code\u003e is an enum used to specify the horizontal alignment of a widget within a Google Workspace add-on.\u003c/p\u003e\n"],["\u003cp\u003eIt offers three alignment options: \u003ccode\u003eSTART\u003c/code\u003e, \u003ccode\u003eCENTER\u003c/code\u003e, and \u003ccode\u003eEND\u003c/code\u003e, allowing developers to position widgets at the beginning, middle, or end of a line or container.\u003c/p\u003e\n"],["\u003cp\u003eTo use these options, developers call the enum property through its parent class like this: \u003ccode\u003eCardService.HorizontalAlignment.START\u003c/code\u003e.\u003c/p\u003e\n"]]],["`HorizontalAlignment` is an enum defining how a widget aligns horizontally. It uses properties accessed via `CardService.HorizontalAlignment`. The `START` property aligns the widget to the beginning of the sentence, `CENTER` aligns it to the center, and `END` aligns it to the sentence's end. These properties are accessed as an Enum.\n"],null,["# Enum HorizontalAlignment\n\nHorizontalAlignment\n\nAn enum that specifies the horizontal alignment of a widget.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.HorizontalAlignment.START`. \n\n### Properties\n\n| Property | Type | Description |\n|----------|--------|-----------------------------------------------------|\n| `START` | `Enum` | Align the widget to the start of the sentence side. |\n| `CENTER` | `Enum` | Align the widget to the center. |\n| `END` | `Enum` | Align the widget to the end of the sentence side. |"]]