Enum HorizontalAlignment
横向对齐
用于指定微件的水平对齐方式的枚举。
如需调用枚举,您可以调用其父类、名称和属性。例如
CardService.HorizontalAlignment.START
。
属性
属性 | 类型 | 说明 |
START | Enum | 将 widget 对齐到句子边的开头。 |
CENTER | Enum | 将微件居中对齐。 |
END | Enum | 将微件对齐到句子边的末尾。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-02。
[null,null,["最后更新时间 (UTC):2024-12-02。"],[[["`HorizontalAlignment` is an enum used to specify the horizontal alignment of a widget within a Google Workspace add-on."],["It offers three alignment options: `START`, `CENTER`, and `END`, allowing developers to position widgets at the beginning, middle, or end of a line or container."],["To use these options, developers call the enum property through its parent class like this: `CardService.HorizontalAlignment.START`."]]],["`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"]]