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.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (1)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]=
Introduced in 1996
(3.0)