HorizontalAlignment
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
枚举 |
UNSPECIFIED |
未指定 HorizontalAlignment。 |
LEADING |
单元格的前缘。这是默认值。 |
CENTER |
内容与列中心对齐。 |
TRAILING |
内容与列尾对齐。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eCell content alignment can be specified using enums like \u003ccode\u003eLEADING\u003c/code\u003e, \u003ccode\u003eCENTER\u003c/code\u003e, and \u003ccode\u003eTRAILING\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eBy default, cell content is aligned to the leading edge, which is represented by the \u003ccode\u003eLEADING\u003c/code\u003e enum.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCENTER\u003c/code\u003e aligns content to the middle of the column, while \u003ccode\u003eTRAILING\u003c/code\u003e aligns it to the end.\u003c/p\u003e\n"],["\u003cp\u003eIf no alignment is specified, \u003ccode\u003eUNSPECIFIED\u003c/code\u003e is used, resulting in the default leading edge alignment.\u003c/p\u003e\n"]]],[],null,["# HorizontalAlignment\n\nThe alignment of the content within the cell.\n\n| Enums ||\n|---------------|--------------------------------------------------------|\n| `UNSPECIFIED` | HorizontalAlignment unspecified. |\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. |"]]