[]
        
(Showing Draft Content)

WorkbookFont Class

WorkbookFont Class

Represents the Workbook Object Model font definition.

Heirarchy

  • WorkbookFont

Constructors

Properties

Constructors

constructor

Properties

bold

bold: boolean

Indicates whether the current font is bold.

color

color: string

Gets or sets the font color.

For export, the color can be specified in any valid HTML format like 6-character dash notation or rgb/rgba/hsl/hsla functional form. In case of rgba/hsla representations, specified alpha channel value is ignored.

For import, a value is always represented in the HTML 6-character dash notation, for example, "#afbfcf".

family

family: string

Gets or sets the font family name.

italic

italic: boolean

Indicates whether the current font has the italic style applied.

size

size: number

Gets or sets the font size in device-independent (1/96th inch) pixels.

underline

underline: boolean

Indicates whether the current font is underlined.