Mathematica > Notebooks and Documents > Low-Level Notebook Programming >

NotebookFind

NotebookFind[notebook, data]
sets the current selection in the specified notebook object to be the next occurrence of data.
NotebookFind[notebook, data, Previous]
sets the current selection to be the previous occurrence.
NotebookFind[notebook, data, All]
sets the current selection to be all occurrences.
NotebookFind[notebook, data, dir, elems]
searches the elements of cells specified by elems.
  • data can be a string, box expression, or a complete cell.
  • The possible elements are:
CellContentscontents of each cell, represented as a string
CellLabelsetting for the CellLabel option of each cell
CellStylename of style for each cell
CellTagsparts 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 front end will also usually highlight the region corresponding to the result.
New in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team