Enum CellMergeState
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
单元格合并状态
表格单元格合并状态。
如需调用枚举,您可以调用其父类、名称和属性。例如
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)|
-------------------
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):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)| ------------------- ``` |"]]