CellGroupData

CellGroupData[{cell1,cell2,}]

is a low-level construct that represents an open group of cells in a notebook.

CellGroupData[{cell1,cell2,},status]

represents a cell group that is open or closed according to the value of status.

CellGroupData[{cell1,cell2,},{i1,i2,}]

represents a cell group with cells at positions i1, i2, open.

Details

  • Cell groups are typically opened and closed by doubleclicking their cell brackets or opener icons.
  • status may take the value of Closed or Open. False and True may also be used.
  • CellGroupData[cells,Dynamic[status]] will reset the value of status when the cell group is interactively opened or closed. It will open or close the cell group when the value of status is set.
  • When cells are entered into a notebook, they are automatically placed in groups unless CellGrouping->Manual is set.

Examples

Basic Examples  (4)

Create a notebook that has automatic cell grouping:

In[1]:=
Click for copyable input

NotebookRead shows the CellGroupData structure:

In[2]:=
Click for copyable input
Out[2]=

Create a document with manually grouped cells:

In[1]:=
Click for copyable input

Create a group with only the second cell open:

In[1]:=
Click for copyable input

Create a group with its first and third cells open:

In[1]:=
Click for copyable input

See Also

CellGroup  Cell  CellGrouping  CellOpen

Tutorials

Introduced in 1996
(3.0)
| Updated in 2007
(6.0)