I want to work on a notebook programmatically with CellObjects.
lets create a notebook for example:
nb = CreateDocument[{TextCell["a", "Title"], Cell["b", "Subtitle"],
Cell["c", "Text"]}];
this gives the CellObjects of the notebook:
cells = Cells[nb]
Now i want to have a function like:
getCellStyle/@cells
Out:
{"Title", "Subtitle", "Text"}
I know that i could work with selections as suggested in this question: How can I get the style of selected cells?
But its more practical in my case to work directly with the CellObjects
. I think there must be a way to get the style, since the CellObjects
look in the FrontEnd like CellObject["style"]
I just want to extract that "style"
.