Enum CellMergeState

  • CellMergeState defines the merge state of a table cell in Google Slides.

  • There are three possible states: NORMAL for unmerged cells, HEAD for the top-left cell of a merged range, and MERGED for other cells within a merged range.

  • To reference a specific state, use the syntax SlidesApp.CellMergeState.STATE_NAME, replacing STATE_NAME with the desired state (e.g., SlidesApp.CellMergeState.NORMAL).

CellMergeState

The table cell merge states.

To call an enum, you call its parent class, name, and property. For example, SlidesApp.CellMergeState.NORMAL.

Properties

PropertyTypeDescription
NORMALEnumThe cell is not merged.
HEADEnumThe 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.

-------------------
|(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.
-------------------
|(0,0)      |(0,2)|
-------------------
MERGEDEnumThe cell is merged but is not the head (i.e. upper left) cell.

As an example, assume the following table.

-------------------
|(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.
-------------------
|(0,0)      |(0,2)|
-------------------