CellInformation[obj]
gives information about selected cells in the notebook represented by the notebook object obj.
Details and Options
Examples
Basic Examples
See Also
Related Guides
Developer`
Developer`
CellInformation
CellInformation[obj]
gives information about selected cells in the notebook represented by the notebook object obj.
Details and Options
- To use CellInformation, you first need to load the Developer Utilities Package using Needs["Developer`"].
- CellInformation can give information both about selections within cells, and cells selected as a whole.
- CellInformation returns a list of rules that include information on cell styles, selection positions, and other features.
Examples
Basic Examples (1)
Assign a generated notebook object to a symbol:
nb = NotebookPut[Notebook[{Cell["Subsection heading", "Subsection"], Cell["Some text.", "Text"]}]];The style of cells can be read directly from any notebook object with Developer`CellInformation:
SelectionMove[nb, All, Notebook];"Style" /. Developer`CellInformation[nb]