NotebookRead

NotebookRead[notebook]
gives the expression corresponding to the current selection in the specified notebook object.

NotebookRead[obj]
gives the expression corresponding to the given cell or box object.

NotebookRead[{obj1,obj2,}]
gives a list of expressions corresponding to the .

Details and OptionsDetails and Options

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

This creates a document notebook:

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

This selects the first cell:

This reads the cell and returns its Cell expression:

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

Read a CellObject:

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

Read a BoxObject:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 1996
(3.0)
| Updated in 2012
(9.0)