HorizontalAlignment
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
枚举 |
LEADING |
单元格的前缘。这是默认值。 |
CENTER |
内容与列中心对齐。 |
TRAILING |
内容与列尾对齐。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-28。
[null,null,["最后更新时间 (UTC):2025-07-28。"],[[["\u003cp\u003eCell content alignment defaults to the leading edge (left for LTR languages, right for RTL).\u003c/p\u003e\n"],["\u003cp\u003eAlignment options include leading, center, and trailing, controlling how content is positioned within the cell.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTRAILING\u003c/code\u003e aligns content to the column's trailing edge (right for LTR languages, left for RTL).\u003c/p\u003e\n"]]],["The document defines cell content alignment options using enums. `LEADING` aligns content to the cell's leading edge, which is the default setting. `CENTER` positions content in the column's center. `TRAILING` aligns content to the column's trailing edge. These enums dictate how text or other elements are positioned within a designated cell space.\n"],null,["# HorizontalAlignment\n\nThe alignment of the content within the cell.\n\n| Enums ||\n|------------|--------------------------------------------------------|\n| `LEADING` | Leading edge of the cell. This is the default. |\n| `CENTER` | Content is aligned to the center of the column. |\n| `TRAILING` | Content is aligned to the trailing edge of the column. |"]]