Enum ParagraphAlignment
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
AkapitWyrównanie
Typy wyrównania tekstu w akapicie.
Aby wywołać enum, wywołaj jego klasę nadrzędną, nazwę i właściwość. Na przykład:
SlidesApp.ParagraphAlignment.START
.
Właściwości
Właściwość | Typ | Opis |
UNSUPPORTED | Enum | nieobsługiwane wyrównanie akapitu; |
START | Enum | Akapit jest wyrównany do początku wiersza. Wyrównaj do lewej w przypadku tekstu od lewej do prawej, a w innym przypadku wyrównaj do prawej. |
CENTER | Enum | Akapit jest wyśrodkowany. |
END | Enum | Akapit jest wyrównany do końca wiersza. Wyrównaj do prawej w przypadku tekstu od lewej do prawej, a w innym przypadku do lewej. |
JUSTIFIED | Enum | Akapit jest wyjustowany. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]