Enum PositionedLayout
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เลย์เอาต์ที่วางตำแหน่ง
การแจกแจงที่ระบุวิธีจัดวาง PositionedImage
สัมพันธ์กับข้อความรอบๆ
หากต้องการเรียกใช้ enum ให้เรียกคลาสหลัก ชื่อ และพร็อพเพอร์ตี้ของ enum นั้น เช่น
DocumentApp.PositionedLayout.ABOVE_TEXT
พร็อพเพอร์ตี้
พร็อพเพอร์ตี้ | ประเภท | คำอธิบาย |
ABOVE_TEXT | Enum | รูปภาพอยู่เหนือข้อความ |
BREAK_BOTH | Enum | รูปภาพตัดข้อความทางด้านซ้ายและขวา |
BREAK_LEFT | Enum | รูปภาพตัดข้อความทางด้านซ้าย |
BREAK_RIGHT | Enum | รูปภาพตัดข้อความทางด้านขวา |
WRAP_TEXT | Enum | รูปภาพถูกตัดให้พอดีกับข้อความ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003e\u003ccode\u003ePositionedLayout\u003c/code\u003e is an enum used to define the placement of a \u003ccode\u003ePositionedImage\u003c/code\u003e relative to the surrounding text in a Google Doc.\u003c/p\u003e\n"],["\u003cp\u003eIt offers five options: \u003ccode\u003eABOVE_TEXT\u003c/code\u003e, \u003ccode\u003eBREAK_BOTH\u003c/code\u003e, \u003ccode\u003eBREAK_LEFT\u003c/code\u003e, \u003ccode\u003eBREAK_RIGHT\u003c/code\u003e, and \u003ccode\u003eWRAP_TEXT\u003c/code\u003e, controlling how the image interacts with the text flow.\u003c/p\u003e\n"],["\u003cp\u003eTo use these options, call the enum using \u003ccode\u003eDocumentApp.PositionedLayout\u003c/code\u003e followed by the desired property, like \u003ccode\u003eDocumentApp.PositionedLayout.WRAP_TEXT\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum PositionedLayout\n\nPositionedLayout\n\nAn enumeration that specifies how to lay out a [PositionedImage](/apps-script/reference/document/positioned-image) in relation to surrounding\ntext.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nDocumentApp.PositionedLayout.ABOVE_TEXT`. \n\n### Properties\n\n| Property | Type | Description |\n|---------------|--------|--------------------------------------------------|\n| `ABOVE_TEXT` | `Enum` | The image is positioned above the text. |\n| `BREAK_BOTH` | `Enum` | The image breaks the text on the left and right. |\n| `BREAK_LEFT` | `Enum` | The image breaks the text on the left. |\n| `BREAK_RIGHT` | `Enum` | The image breaks the text on the right. |\n| `WRAP_TEXT` | `Enum` | The image is wrapped by text. |"]]