ComponentOne ASP.NET MVC Controls
WorkbookFont Class
File
wijmo.xlsx.js
Module
wijmo.xlsx
Implements
IWorkbookFont

Represents the Workbook Object Model font definition.

Constructor

Properties

Constructor

constructor

constructor(): WorkbookFont

Initializes a new instance of the WorkbookFont class.

Returns
WorkbookFont

Properties

bold

Indicates whether the current font is bold.

Type
boolean

color

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".

Type
string

family

Gets or sets the font family name.

Type
string

italic

Indicates whether the current font has the italic style applied.

Type
boolean

size

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

Type
number

underline

Indicates whether the current font is underlined.

Type
boolean