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 obji.

Details and Options

Examples

open allclose all

Basic Examples  (3)

This creates a document notebook:

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

This selects the first cell:

In[2]:=
Click for copyable input

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

Scope  (1)

Applications  (1)

See Also

NotebookGet  NotebookImport  NotebookWrite  NotebookDelete  ButtonSource  CopyToClipboard

Tutorials

Introduced in 1996
(3.0)
| Updated in 2012
(9.0)