CellInformation

CellInformation[obj]
gives information about selected cells in the notebook represented by the notebook object obj.

更多信息更多信息

  • To use , you first need to load the Developer Utilities Package using Needs["Developer`"].
  • can give information both about selections within cells, and cells selected as a whole.
  • returns a list of rules that include information on cell styles, selection positions, and other features.

范例范例打开所有单元关闭所有单元

基本范例  (1)基本范例  (1)

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]=