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:

Find out the option settings for the selected text:

Scope  (2)

Apply a named style to a selection:

Set an option for selected graphics:

Properties & Relations  (1)

You do not need to use NotebookSelection with most notebook-manipulating functions:

Possible Issues  (1)

Some options are not applicable to individual cells or cell contents:

Introduced in 1996
 (3.0)