Enum HorizontalAlignment
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Układ poziomy
Typ enumeracji określający wyrównanie poziome widgeta.
Aby wywołać enum, wywołaj jego klasę nadrzędną, nazwę i właściwość. Na przykład:
CardService.HorizontalAlignment.START
.
Właściwości
Właściwość | Typ | Opis |
START | Enum | Wyrównaj widżet do początku akapitu. |
CENTER | Enum | Wyrównaj widżet do środka. |
END | Enum | Dopasuj widżet do końca zdania. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]