Enum CellMergeState
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เซลล์ผสานสถานะ
สถานะการผสานเซลล์ตาราง
หากต้องการเรียกใช้ enum ให้เรียกคลาสหลัก ชื่อ และพร็อพเพอร์ตี้ของ enum นั้น เช่น
SlidesApp.CellMergeState.NORMAL
พร็อพเพอร์ตี้
พร็อพเพอร์ตี้ | ประเภท | คำอธิบาย |
NORMAL | Enum | ระบบไม่ได้ผสานเซลล์ |
HEAD | Enum | เซลล์ดังกล่าวผสานแล้ว และเป็นเซลล์ส่วนหัว (ซ้ายบน) ภายในชุดเซลล์ที่ผสาน
ตัวอย่างเช่น สมมติว่าตารางต่อไปนี้
-------------------
|(0,0)|(0,1)|(0,2)|
-------------------
หากผสาน 2 เซลล์แรกเพื่อสร้างตารางต่อไปนี้ เซลล์ (0,0) จะเป็นเซลล์ส่วนหัว และ (0,1) จะเป็นเซลล์ที่ผสาน
-------------------
|(0,0) |(0,2)|
-------------------
|
MERGED | Enum | เซลล์ผสานแล้ว แต่ไม่ใช่เซลล์ส่วนหัว (ซ้ายบน)
ตัวอย่างเช่น สมมติว่าตารางต่อไปนี้
-------------------
|(0,0)|(0,1)|(0,2)|
-------------------
หากผสาน 2 เซลล์แรกเพื่อสร้างตารางต่อไปนี้ เซลล์ (0,0) จะเป็นเซลล์ส่วนหัว และ (0,1) จะเป็นเซลล์ที่ผสาน
-------------------
|(0,0) |(0,2)|
-------------------
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003e\u003ccode\u003eCellMergeState\u003c/code\u003e defines the merge state of a table cell in Google Slides.\u003c/p\u003e\n"],["\u003cp\u003eThere are three possible states: \u003ccode\u003eNORMAL\u003c/code\u003e for unmerged cells, \u003ccode\u003eHEAD\u003c/code\u003e for the top-left cell of a merged range, and \u003ccode\u003eMERGED\u003c/code\u003e for other cells within a merged range.\u003c/p\u003e\n"],["\u003cp\u003eTo reference a specific state, use the syntax \u003ccode\u003eSlidesApp.CellMergeState.STATE_NAME\u003c/code\u003e, replacing \u003ccode\u003eSTATE_NAME\u003c/code\u003e with the desired state (e.g., \u003ccode\u003eSlidesApp.CellMergeState.NORMAL\u003c/code\u003e).\u003c/p\u003e\n"]]],[],null,["# Enum CellMergeState\n\nCellMergeState\n\nThe table cell merge states.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSlidesApp.CellMergeState.NORMAL`. \n\n### Properties\n\n| Property | Type | Description |\n|----------|--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `NORMAL` | `Enum` | The cell is not merged. |\n| `HEAD` | `Enum` | The cell is merged and it is the head (i.e. upper left) cell within the merged set of cells. As an example, assume the following table. ```text ------------------- |(0,0)|(0,1)|(0,2)| ------------------- ``` If the first two cells are merged to form the following table, cell (0,0) is the head cell and (0,1) is a merged cell. ```text ------------------- |(0,0) |(0,2)| ------------------- ``` |\n| `MERGED` | `Enum` | The cell is merged but is not the head (i.e. upper left) cell. As an example, assume the following table. ```text ------------------- |(0,0)|(0,1)|(0,2)| ------------------- ``` If the first two cells are merged to form the following table, cell (0,0) is the head cell and (0,1) is a merged cell. ```text ------------------- |(0,0) |(0,2)| ------------------- ``` |"]]