Enum ParagraphAlignment
ParagraphAlignment
The types of text alignment for a paragraph.
To call an enum, you call its parent class, name, and property. For example,
SlidesApp.ParagraphAlignment.START
.
Properties
Property | Type | Description |
UNSUPPORTED | Enum | A paragraph alignment that is not supported. |
START | Enum | The paragraph is aligned to the start of the line. Left-aligned for left-to-right text,
right-aligned otherwise. |
CENTER | Enum | The paragraph is centered. |
END | Enum | The paragraph is aligned to the end of the line. Right-aligned for left-to-right text,
left-aligned otherwise. |
JUSTIFIED | Enum | The paragraph is justified. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[null,null,["Last updated 2024-12-02 UTC."],[[["`ParagraphAlignment` determines how a paragraph's text is aligned within its containing element."],["It includes five alignment options: `UNSUPPORTED`, `START`, `CENTER`, `END`, and `JUSTIFIED`."],["Alignment options like `START` and `END` are relative to text direction, adjusting for left-to-right or right-to-left languages."],["You can set a paragraph's alignment using the syntax: `SlidesApp.ParagraphAlignment.[Alignment Option]`."]]],["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"]]