Enum ParagraphAlignment
段落對齊方式段落的文字對齊類型。
如要呼叫列舉,請呼叫其父項類別、名稱和屬性。例如
SlidesApp.ParagraphAlignment.START
。
屬性
屬性 | 類型 | 說明 |
UNSUPPORTED | Enum | 系統不支援的段落對齊方式。 |
START | Enum | 段落會與行首對齊。向左對齊的文字從左到右,其他則向右對齊。 |
CENTER | Enum | 段落會置中。 |
END | Enum | 段落會對齊到行尾。文字從左到右時靠右對齊,否則靠左對齊。 |
JUSTIFIED | Enum | 段落已對齊。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-02 (世界標準時間)。
[null,null,["上次更新時間:2024-12-02 (世界標準時間)。"],[[["`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"]]