This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

CellGroupData

CellGroupData[{cell1, cell2, ...}]
is a low-level construct that represents an open group of cells in a notebook.
CellGroupData[{cell1, cell2, ...}, 1]
represents a cell group in which only the first cell is open.
CellGroupData[{cell1, cell2, ...}, {i1, i2, ...}]
represents a cell group with cells at positions i1, i2, ... open.
  • Cell groups are typically opened and closed by double-clicking their cell brackets or opener icons.
  • When cells are entered into a notebook, they are automatically placed in groups unless CellGrouping->Manual is set.
Create a notebook that has automatic cell grouping:
NotebookRead shows the CellGroupData structure:
Create a document with manually grouped cells:
Create a group with only the second cell open:
Create a group with its first and third cells open:
Create a notebook that has automatic cell grouping:
NotebookRead shows the CellGroupData structure:
In[2]:=
Click for copyable input
Out[2]=
 
Create a document with manually grouped cells:
 
Create a group with only the second cell open:
 
Create a group with its first and third cells open:
New in 3 | Last modified in 6