Function Repository Resource:

CellObjectStyle

Source Notebook

Get the style of given CellObject

Contributed by: Arnoud Buzing

ResourceFunction["CellObjectStyle"][cell]

returns the style of the given CellObject cell.

ResourceFunction["CellObjectStyle"][cells]

returns the styles of the given list of CellObject cells.

Examples

Basic Examples (2) 

Give the styles for all cells in a notebook:

In[1]:=
ResourceFunction["CellObjectStyle"][Cells[]]
Out[1]=

Get a random cell from this notebook:

In[2]:=
cell = RandomChoice[Cells[]]
Out[2]=

Get the style for the cell:

In[3]:=
ResourceFunction["CellObjectStyle"][cell]
Out[3]=

Publisher

Arnoud Buzing

Version History

  • 1.0.0 – 17 January 2020

Related Resources

License Information