Enum HorizontalAlignment
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Горизонтальное выравнивание Перечисление, определяющее горизонтальное выравнивание виджета.
Чтобы вызвать перечисление, вы вызываете его родительский класс, имя и свойство. Например, CardService.HorizontalAlignment.START
.
Характеристики
Свойство | Тип | Описание |
---|
START | Enum | Выровняйте виджет по началу предложения. |
CENTER | Enum | Выровняйте виджет по центру. |
END | Enum | Выровняйте виджет по концу предложения. |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-24 UTC.
[null,null,["Последнее обновление: 2025-07-24 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. |"]]