Mathematica 9 is now available

Documentation / Mathematica / Built-in Functions / Notebooks / Notebook Manipulation /

NotebookWrite

FilledSmallSquare NotebookWrite[notebook, data] writes data into a notebook at the current selection, setting the current selection to be just after the data written.

FilledSmallSquare NotebookWrite[notebook, data, sel] writes data into a notebook setting the current selection to be as specified by sel.

FilledSmallSquare The first argument of NotebookWrite is a NotebookObject.

FilledSmallSquare NotebookWrite does essentially the same as a Paste operation in the front end: it replaces by data whatever the current selection in the notebook is.

FilledSmallSquare NotebookWrite is the basic way to use the Mathematica kernel to modify the contents of notebooks that are being manipulated by the front end.

FilledSmallSquare NotebookWrite automatically wraps Cell around the data you specify if this is necessary.

FilledSmallSquare Possible settings for sel are:

FilledSmallSquare The default for sel is After, so that NotebookWrite[obj, data] can be called repeatedly to insert several pieces of data in sequence.

FilledSmallSquare See Section 2.11.3.

FilledSmallSquare See also: NotebookApply, NotebookRead, NotebookDelete, SelectionMove.

FilledSmallSquare New in Version 3.

Further Examples



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.