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

CellInformation

CellInformation[obj]
gives information about selected cells in the notebook represented by the notebook object obj.
  • can give information both about selections within cells, and cells selected as a whole.
  • returns a list of rules which include information on cell styles, selection positions, and other features.
Assign a generated notebook object to a symbol:
The style of cells can be read directly from any notebook object with :
Assign a generated notebook object to a symbol:
In[1]:=
Click for copyable input
The style of cells can be read directly from any notebook object with :
In[2]:=
Click for copyable input
Out[2]=