此为 Mathematica 7 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.2)

CellInformation

CellInformation[obj]
gives information about selected cells in the notebook represented by the notebook object obj.
  • CellInformation can give information both about selections within cells, and cells selected as a whole.
  • CellInformation returns a list of rules which include information on cell styles, selection positions, and other features.
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 Developer`CellInformation:
In[2]:=
Click for copyable input
Out[2]=