Enum ParagraphAlignment
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Alignement du paragraphe
Types d'alignement du texte pour un paragraphe.
Pour appeler un énumération, vous devez appeler sa classe parente, son nom et sa propriété. Par exemple,
SlidesApp.ParagraphAlignment.START
.
Propriétés
Propriété | Type | Description |
UNSUPPORTED | Enum | Alignement de paragraphe non accepté. |
START | Enum | Le paragraphe est aligné sur le début de la ligne. Aligné à gauche pour le texte de gauche à droite, à droite dans le cas contraire. |
CENTER | Enum | Le paragraphe est centré. |
END | Enum | Le paragraphe est aligné à la fin de la ligne. Aligné à droite pour le texte de gauche à droite, à gauche dans le cas contraire. |
JUSTIFIED | Enum | Le paragraphe est justifié. |
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[null,null,["Dernière mise à jour le 2025/07/26 (UTC)."],[[["\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. |"]]