Skip to content
Sheetwrite

Sheetwrite / Documentation

CellStyle@sheetwrite/core

Serializable formatting applied to a cell or used as a column default.

Serializable formatting applied to a cell or used as a column default.

Members 10

bold Uses the bold variant of the theme font.
bold?: boolean;
italic Uses the italic variant of the theme font.
italic?: boolean;
underline Draws a line beneath each rendered text run.
underline?: boolean;
strikethrough Draws a line through each rendered text run.
strikethrough?: boolean;
fontSize Font size in unzoomed CSS pixels; zoom is applied during painting.
fontSize?: number;
color hex color, e.g. "#111111"
color?: string;
backgroundColor hex color, e.g. "#ffffff"
backgroundColor?: string;
align Horizontal placement of cell text within its column.
align?: CellAlign;
wrap Wraps text within the cell width; row auto-fit accounts for the resulting line count.
wrap?: boolean;
border Border overrides for the cell's individual sides.
border?: CellBorders;

Declaration

View full TypeScript declaration
export interface CellStyle {
bold?: boolean;
italic?: boolean;
underline?: boolean;
strikethrough?: boolean;
fontSize?: number;
color?: string;
backgroundColor?: string;
align?: CellAlign;
wrap?: boolean;
border?: CellBorders;
}