Enum CellMergeState
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
儲存格Merge狀態表格儲存格的合併狀態。
如要呼叫列舉,請呼叫其父項類別、名稱和屬性。例如
SlidesApp.CellMergeState.NORMAL
。
屬性
屬性 | 類型 | 說明 |
NORMAL | Enum | 儲存格未合併。 |
HEAD | Enum | 儲存格已合併,且為合併儲存格組中的前端 (即左上方) 儲存格。 舉例來說,假設有以下資料表。
-------------------
|(0,0)|(0,1)|(0,2)|
-------------------
如果將前兩個儲存格合併,形成下表,儲存格 (0,0) 是頭部儲存格,而 (0,1) 則是已合併的儲存格。
-------------------
|(0,0) |(0,2)|
-------------------
|
MERGED | Enum | 儲存格已合併,但不是前端 (即左上方) 儲存格。 舉例來說,假設有以下資料表。
-------------------
|(0,0)|(0,1)|(0,2)|
-------------------
如果將前兩個儲存格合併,形成下表,儲存格 (0,0) 是頭部儲存格,而 (0,1) 則是已合併的儲存格。
-------------------
|(0,0) |(0,2)|
-------------------
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\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)| ------------------- ``` |"]]