Enum ParagraphAlignment
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
การจัดข้อความของย่อหน้า
ประเภทการจัดแนวข้อความของย่อหน้า
หากต้องการเรียกใช้ enum ให้เรียกคลาสหลัก ชื่อ และพร็อพเพอร์ตี้ของ enum นั้น เช่น
SlidesApp.ParagraphAlignment.START
พร็อพเพอร์ตี้
พร็อพเพอร์ตี้ | ประเภท | คำอธิบาย |
UNSUPPORTED | Enum | การจัดแนวย่อหน้าที่ไม่รองรับ |
START | Enum | ย่อหน้าจะจัดแนวกับจุดเริ่มต้นของบรรทัด จัดชิดซ้ายสำหรับข้อความแบบซ้ายไปขวา จัดชิดขวาสำหรับข้อความแบบอื่น |
CENTER | Enum | ย่อหน้าอยู่กึ่งกลาง |
END | Enum | ย่อหน้าจะจัดแนวกับส่วนท้ายของบรรทัด จัดชิดขวาสำหรับข้อความแบบซ้ายไปขวา จัดชิดซ้ายสำหรับข้อความแบบอื่น |
JUSTIFIED | Enum | ย่อหน้ามีการจัดข้อความให้ชิดขอบ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 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. |"]]