CellInformation[obj]
gives information about selected cells in the notebook represented by the notebook object obj.
更多信息和选项
范例
基本范例
参见
相关指南
Developer`
Developer`
CellInformation
CellInformation[obj]
gives information about selected cells in the notebook represented by the notebook object obj.
更多信息和选项
- 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.
范例
基本范例 (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]