Enum ParagraphAlignment
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Căn chỉnhđoạn văn
Các kiểu căn chỉnh văn bản cho một đoạn văn.
Để gọi một enum, bạn gọi lớp mẹ, tên và thuộc tính của enum đó. Ví dụ:
SlidesApp.ParagraphAlignment.START
.
Thuộc tính
Thuộc tính | Loại | Mô tả |
UNSUPPORTED | Enum | Cách căn chỉnh đoạn văn không được hỗ trợ. |
START | Enum | Đoạn văn được căn chỉnh với đầu dòng. Căn trái cho văn bản từ trái sang phải, căn phải nếu không. |
CENTER | Enum | Đoạn văn được căn giữa. |
END | Enum | Đoạn văn được căn chỉnh với cuối dòng. Căn phải cho văn bản từ trái sang phải, căn trái cho văn bản từ phải sang trái. |
JUSTIFIED | Enum | Đoạn văn được căn chỉnh. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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. |"]]