Enum ParagraphAlignment
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
段落对齐方式
段落的文本对齐方式。
如需调用枚举,您可以调用其父类、名称和属性。例如
SlidesApp.ParagraphAlignment.START
。
属性
属性 | 类型 | 说明 |
UNSUPPORTED | Enum | 不支持的段落对齐方式。 |
START | Enum | 段落会与线条的起点对齐。对于从左到右的文本,对齐方式为左对齐;对于其他文本,对齐方式为右对齐。 |
CENTER | Enum | 段落居中。 |
END | Enum | 段落会对齐到行尾。对于从左到右的文本,对齐方式为右对齐;对于其他文本,对齐方式为左对齐。 |
JUSTIFIED | Enum | 段落采用了右对齐方式。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eParagraphAlignment\u003c/code\u003e determines how a paragraph's text is aligned within its containing element.\u003c/p\u003e\n"],["\u003cp\u003eIt includes five alignment options: \u003ccode\u003eUNSUPPORTED\u003c/code\u003e, \u003ccode\u003eSTART\u003c/code\u003e, \u003ccode\u003eCENTER\u003c/code\u003e, \u003ccode\u003eEND\u003c/code\u003e, and \u003ccode\u003eJUSTIFIED\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAlignment options like \u003ccode\u003eSTART\u003c/code\u003e and \u003ccode\u003eEND\u003c/code\u003e are relative to text direction, adjusting for left-to-right or right-to-left languages.\u003c/p\u003e\n"],["\u003cp\u003eYou can set a paragraph's alignment using the syntax: \u003ccode\u003eSlidesApp.ParagraphAlignment.[Alignment Option]\u003c/code\u003e.\u003c/p\u003e\n"]]],["Paragraph alignment types are defined as an enum, accessible via `SlidesApp.ParagraphAlignment`. The available properties are: `UNSUPPORTED` for unsupported alignments, `START` aligning to the beginning of the line, `CENTER` for centering, `END` aligning to the end of the line, and `JUSTIFIED` for justified alignment. `START` and `END` are context-dependent based on text directionality. Each property is an enum type.\n"],null,["# Enum ParagraphAlignment\n\nParagraphAlignment\n\nThe types of text alignment for a paragraph.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSlidesApp.ParagraphAlignment.START`. \n\n### Properties\n\n| Property | Type | Description |\n|---------------|--------|------------------------------------------------------------------------------------------------------------------|\n| `UNSUPPORTED` | `Enum` | A paragraph alignment that is not supported. |\n| `START` | `Enum` | The paragraph is aligned to the start of the line. Left-aligned for left-to-right text, right-aligned otherwise. |\n| `CENTER` | `Enum` | The paragraph is centered. |\n| `END` | `Enum` | The paragraph is aligned to the end of the line. Right-aligned for left-to-right text, left-aligned otherwise. |\n| `JUSTIFIED` | `Enum` | The paragraph is justified. |"]]