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:

Wolfram Research (1996), NotebookSelection, Wolfram Language function, https://reference.wolfram.com/language/ref/NotebookSelection.html.

Text

Wolfram Research (1996), NotebookSelection, Wolfram Language function, https://reference.wolfram.com/language/ref/NotebookSelection.html.

CMS

Wolfram Language. 1996. "NotebookSelection." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NotebookSelection.html.

APA

Wolfram Language. (1996). NotebookSelection. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NotebookSelection.html

BibTeX

@misc{reference.wolfram_2023_notebookselection, author="Wolfram Research", title="{NotebookSelection}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/NotebookSelection.html}", note=[Accessed: 18-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_notebookselection, organization={Wolfram Research}, title={NotebookSelection}, year={1996}, url={https://reference.wolfram.com/language/ref/NotebookSelection.html}, note=[Accessed: 18-March-2024 ]}