writes data into a notebook at the current selection, replacing the first selection placeholder in data by the current selection, and then setting the current selection to be just after the data written.
writes data into a notebook in place of the specified cell.
writes data into a notebook and then sets the current selection to be as specified by sel.
Details and Options
- The first argument of NotebookApply can be a NotebookObject or a CellObject.
- NotebookApply has the same effect as NotebookWrite, except that it replaces the first selection placeholder in data by the current selection.
- NotebookApply can be used in setting up actions for buttons in palettes.
- Selection placeholders are represented by the character or \[SelectionPlaceholder].
- Possible settings for sel are as in NotebookWrite.
Examplesopen allclose all
Basic Examples (1)
Select an x in a cell that is not visible in the notebook window:
Usually, writing data to a location makes the document scroll to that location:
Again, select an x that is not visible in the notebook window:
With AutoScroll set to False, the location where data is written stays off screen:
Moving the selection slightly, without AutoScroll->False, scrolls to where the new data is:
Wolfram Research (1996), NotebookApply, Wolfram Language function, https://reference.wolfram.com/language/ref/NotebookApply.html (updated 2012).
Wolfram Language. 1996. "NotebookApply." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2012. https://reference.wolfram.com/language/ref/NotebookApply.html.
Wolfram Language. (1996). NotebookApply. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NotebookApply.html