Enum HorizontalAlignment
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Alineación horizontal
Es una enumeración que especifica la alineación horizontal de un widget.
Para llamar a una enumeración, debes llamar a su clase superior, nombre y propiedad. Por ejemplo,
CardService.HorizontalAlignment.START
.
Propiedades
Propiedad | Tipo | Descripción |
START | Enum | Alinea el widget con el inicio del lado de la oración. |
CENTER | Enum | Alinea el widget en el centro. |
END | Enum | Alinea el widget con el final del lado de la oración. |
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-26 (UTC)
[null,null,["Última actualización: 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. |"]]