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:

This selects the first cell:

This reads the cell and returns its Cell expression:

Read a CellObject:

Read a BoxObject:

Scope  (1)

Create a notebook and move the selection to the first "T":

Read the current selection:

Select multiple cells and read the content:

Select and read graphics:

Display the result:

Applications  (1)

A palette that reads the word at the current selection and makes it uppercase:

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