Wolfram Language & System 10.3 (2015)|Legacy Documentation
This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)
returns the currently selected cells in the notebook in which this function is being evaluated.
- If no cells are selected, SelectedCells returns an empty list.
- If the selection is inside of a cell, SelectedCells returns the cell containing the selection.
- SelectedCells[notebook] is equivalent to Cells[NotebookSelection[notebook]].
- If the selection is inside of an inline cell, then SelectedCells will return the CellObject corresponding to the inline cell. The setting AllowInlineCells->False may be given to cause it to return the top-level cell that contains the selected inline cell.
Introduced in 2014