Skip to content
TREB Docs

CellStyle

CellStyle interface

style properties applied to a single cell, row, column, or sheet. when rendering a cell, we composite all styles that might apply.

Members
boldoptional
boolean
boolean
flag
border_bottomoptional
number
number
border weight
border_bottom_filloptionalborder color
border_leftoptional
number
number
border weight
border_left_filloptionalborder color
border_rightoptional
number
number
border weight
border_right_filloptionalborder color
border_topoptional
number
number
border weight
border_top_filloptionalborder color
filloptionalbackground color
font_faceoptional
string
string
font face. this can be a comma-delimited list, like CSS
font_sizeoptionalfont size. we recommend using relative font sizes (either % or em) which will be relative to the theme font size.
horizontal_alignoptionalhorizontal align defaults to left
indentoptional
number
number
text indent
italicoptional
boolean
boolean
flag
lockedoptional
boolean
boolean
cell is locked for editing
nanoptional
string
string
representation for NaN
number_formatoptional
string
string
number format, either a symbolic name like "General" or a format string
strikeoptional
boolean
boolean
flag
textoptionaltext color
underlineoptional
boolean
boolean
flag
vertical_alignoptionalvertical align defaults to bottom
wrapoptional
boolean
boolean
wrap text
Referenced by
EmbeddedSpreadsheet.ApplyStyle
EmbeddedSpreadsheet.GetStyle
TableFilterFunction
TableTheme
SerializedSheet