NotebookFind
NotebookFind[obj,data]
sets the current selection in the specified notebook object to be the next occurrence of data.
NotebookFind[obj,data,Previous]
sets the current selection to be the previous occurrence.
NotebookFind[obj,data,All]
sets the current selection to be all occurrences.
NotebookFind[obj,data,dir,elems]
sets the current selection to be the occurrence in the direction dir and searches the elements of cells specified by elems.
Details and Options
- NotebookFind returns $Failed if the search it performs finds no occurrence of data.
- obj may be a NotebookObject or a CellObject. If obj is a NotebookObject, then the find operation starts where the selection is in the notebook.
- data can be a string, box expression, or a complete cell.
- Possible values of dir include Next, Previous, and All.
- The possible elements are:
-
CellContents contents of each cell, represented as a string CellID setting for the CellID option of each cell CellLabel setting for the CellLabel option of each cell CellStyle name of style for each cell CellTags parts of the setting for the CellTags option for each cell {elem1,elem2,…} list of different types of elements - The default for elems is CellContents. Only the contents of boxes, not their styles or options, are included in the search.
- The following options can be given:
-
AutoScroll True whether to scroll the notebook to the found result automatically IgnoreCase False whether to treat lowercase and uppercase letters as equivalent WordSearch False whether to require that the text searched for appear as a word WrapAround False if no result is found in the given direction, whether to wrap around and keep searching - The front end will highlight the region corresponding to the result.
Examples
open allclose allScope (2)
Options (2)
AutoScroll (1)
Normally, the document scrolls so that the found data is visible in the notebook window:
With AutoScroll set to False, the document does not scroll to the found data:
Text
Wolfram Research (1996), NotebookFind, Wolfram Language function, https://reference.wolfram.com/language/ref/NotebookFind.html (updated 2014).
CMS
Wolfram Language. 1996. "NotebookFind." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/NotebookFind.html.
APA
Wolfram Language. (1996). NotebookFind. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NotebookFind.html