ExcelScript.ChartFont interface

This object represents the font attributes (such as font name, font size, and color) for a chart object.

Methods

getBold()

Represents the bold status of font.

getColor()

HTML color code representation of the text color (e.g., #FF0000 represents Red).

getItalic()

Represents the italic status of the font.

getName()

Font name (e.g., "Calibri")

getSize()

Size of the font (e.g., 11)

getUnderline()

Type of underline applied to the font. See ExcelScript.ChartUnderlineStyle for details.

setBold(bold)

Represents the bold status of font.

setColor(color)

HTML color code representation of the text color (e.g., #FF0000 represents Red).

setItalic(italic)

Represents the italic status of the font.

setName(name)

Font name (e.g., "Calibri")

setSize(size)

Size of the font (e.g., 11)

setUnderline(underline)

Type of underline applied to the font. See ExcelScript.ChartUnderlineStyle for details.

Method Details

getBold()

Represents the bold status of font.

getBold(): boolean;

Returns

boolean

getColor()

HTML color code representation of the text color (e.g., #FF0000 represents Red).

getColor(): string;

Returns

string

getItalic()

Represents the italic status of the font.

getItalic(): boolean;

Returns

boolean

getName()

Font name (e.g., "Calibri")

getName(): string;

Returns

string

getSize()

Size of the font (e.g., 11)

getSize(): number;

Returns

number

getUnderline()

Type of underline applied to the font. See ExcelScript.ChartUnderlineStyle for details.

getUnderline(): ChartUnderlineStyle;

Returns

setBold(bold)

Represents the bold status of font.

setBold(bold: boolean): void;

Parameters

bold

boolean

Returns

void

setColor(color)

HTML color code representation of the text color (e.g., #FF0000 represents Red).

setColor(color: string): void;

Parameters

color

string

Returns

void

setItalic(italic)

Represents the italic status of the font.

setItalic(italic: boolean): void;

Parameters

italic

boolean

Returns

void

setName(name)

Font name (e.g., "Calibri")

setName(name: string): void;

Parameters

name

string

Returns

void

setSize(size)

Size of the font (e.g., 11)

setSize(size: number): void;

Parameters

size

number

Returns

void

setUnderline(underline)

Type of underline applied to the font. See ExcelScript.ChartUnderlineStyle for details.

setUnderline(underline: ChartUnderlineStyle): void;

Parameters

Returns

void