Mathematica 9 is now available

Documentation / Mathematica / Built-in Functions / New in Version 3.x / Notebooks /

SelectionEvaluateCreateCell

FilledSmallSquare SelectionEvaluateCreateCell[notebook] takes the current selection in a notebook and creates a new cell containing the result obtained by evaluating the contents of the selection using the kernel.

FilledSmallSquare SelectionEvaluateCreateCell[notebook, sel] sets the current selection after the evaluation to be as specified by sel.

FilledSmallSquare The first argument of SelectionEvaluateCreateCell is a NotebookObject.

FilledSmallSquare Possible settings for sel are as in NotebookWrite.

FilledSmallSquare The default for sel is After.

FilledSmallSquare SelectionEvaluateCreateCell[notebook, All] sets the current selection to be the cell corresponding the result from the evaluation.

FilledSmallSquare SelectionEvaluateCreateCell performs the same underlying operation as typing Shift-Enter in the front end. It does not, however, have side effects such as incrementing $Line.

FilledSmallSquare See Section 2.11.3.

FilledSmallSquare See also: SelectionEvaluate, SelectionCreateCell, NotebookRead, NotebookWrite.

FilledSmallSquare New in Version 3.



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.