ExcelScript.ChartFont interface
This object represents the font attributes (such as font name, font size, and color) for a chart object.
Methods
get |
Represents the bold status of font. |
get |
HTML color code representation of the text color (e.g., #FF0000 represents Red). |
get |
Represents the italic status of the font. |
get |
Font name (e.g., "Calibri") |
get |
Size of the font (e.g., 11) |
get |
Type of underline applied to the font. See |
set |
Represents the bold status of font. |
set |
HTML color code representation of the text color (e.g., #FF0000 represents Red). |
set |
Represents the italic status of the font. |
set |
Font name (e.g., "Calibri") |
set |
Size of the font (e.g., 11) |
set |
Type of underline applied to the font. See |
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
- underline
- ExcelScript.ChartUnderlineStyle
Returns
void
Office Scripts