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:

Wolfram Research (1996), NotebookRead, Wolfram Language function, https://reference.wolfram.com/language/ref/NotebookRead.html (updated 2012).

Text

Wolfram Research (1996), NotebookRead, Wolfram Language function, https://reference.wolfram.com/language/ref/NotebookRead.html (updated 2012).

CMS

Wolfram Language. 1996. "NotebookRead." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2012. https://reference.wolfram.com/language/ref/NotebookRead.html.

APA

Wolfram Language. (1996). NotebookRead. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NotebookRead.html

BibTeX

@misc{reference.wolfram_2023_notebookread, author="Wolfram Research", title="{NotebookRead}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/NotebookRead.html}", note=[Accessed: 06-December-2023 ]}

BibLaTeX

@online{reference.wolfram_2023_notebookread, organization={Wolfram Research}, title={NotebookRead}, year={2012}, url={https://reference.wolfram.com/language/ref/NotebookRead.html}, note=[Accessed: 06-December-2023 ]}