NotebookSelection

NotebookSelection[]

represents the current selection in the current evaluation notebook in the front end.

NotebookSelection[nb]

represents the current selection associated with the open notebook nb.

Details

Examples

open allclose all

Basic Examples  (1)

Select some text and then set a font option for it:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input

Find out the option settings for the selected text:

In[4]:=
Click for copyable input
Out[4]=

Scope  (2)

Properties & Relations  (1)

Possible Issues  (1)

See Also

SelectionMove  CurrentValue  CellObject  Cells  SelectedCells

Tutorials

Introduced in 1996
(3.0)