Skip to content

Style$1

type Style$1 = {
bold?: boolean;
borderBottomColor?: Color;
borderBottomStyle?: BorderStyle;
borderLeftColor?: Color;
borderLeftStyle?: BorderStyle;
borderRightColor?: Color;
borderRightStyle?: BorderStyle;
borderTopColor?: Color;
borderTopStyle?: BorderStyle;
color?: Color;
extendsStyle?: string;
fillColor?: Color;
fontFamily?: string;
fontScheme?: "major" | "minor";
fontSize?: PixelValue;
horizontalAlignment?: HAlign;
italic?: boolean;
numberFormat?: string;
patternColor?: Color;
patternStyle?: PatternStyle;
shrinkToFit?: boolean;
textRotation?: integer;
underline?: Underline;
verticalAlignment?: VAlign;
wrapText?: boolean;
};
PropertyTypeDefault valueDescription
bold?booleanundefinedIndicates whether the text is bold. Default false
borderBottomColor?ColorundefinedBottom border color.
borderBottomStyle?BorderStyleundefinedBottom border style. Default "none"
borderLeftColor?ColorundefinedLeft border color.
borderLeftStyle?BorderStyleundefinedLeft border style. Default "none"
borderRightColor?ColorundefinedRight border color.
borderRightStyle?BorderStyleundefinedRight border style. Default "none"
borderTopColor?ColorundefinedTop border color.
borderTopStyle?BorderStyleundefinedTop border style. Default "none"
color?ColorundefinedThe color used to render text. Default "#000"
extendsStyle?stringundefinedName of the named style this style inherits from (e.g. “Percent”, “Heading 1”). Refers to a key in Workbook.namedStyles. When absent, the style inherits from the default style (typically “Normal”).
fillColor?ColorundefinedThe cell’s background color. Default "#FFFFFF"
fontFamily?stringundefinedThe name of the font family used to render text, e.g. "Arial". Default "Calibri"
fontScheme?"major" | "minor"undefinedIdentifies the font scheme, if any, to which this style’s font belongs. When set, the Style.fontFamily property is ignored and the font is instead resolved by the workbook theme. "major" maps to the theme’s heading font and "minor" to the body font. The actual typeface is determined by the theme’s ThemeFontCollection at render time. When the theme changes, an application is expected to update the fonts associated with a scheme automatically. It is an error to set this when a workbook has no theme. See - Workbook.theme - Theme.fontScheme - ThemeFontScheme - ThemeFontCollection
fontSize?PixelValueundefinedThe font size in pixels. Default 11
horizontalAlignment?HAlignundefinedHorizontal alignment of the cells [text] content. Default "general"
italic?booleanundefinedIndicates whether the text is italic. Default false
numberFormat?stringundefinedFormatting directions for rendering the cell’s value to text.
patternColor?ColorundefinedThe color of a cell’s background fill. Default "#000000"
patternStyle?PatternStyleundefinedThe style of a cell’s background fill. Default "none"
shrinkToFit?booleanundefinedIndicates whether the font-size should be automatically reduced in order to make the contents of the cell visible.
textRotation?integer0The degrees to which the cell text should be rotated. Values range from 0 to 180, and 255 to indicate vertical text. The origin of the rotation is the first letter of the text. Min 0 Max 255
underline?UnderlineundefinedText underline decoration type. Default "none"
verticalAlignment?VAlignundefinedVertical alignment of the cells [text] content. Default "bottom"
wrapText?booleanundefinedIndicates whether text should be wrapped when it exceeds the cell’s width. Default false