Excel.Interfaces.RangeFontData interface

An interface describing the data returned by calling rangeFont.toJSON().

Properties

bold

Represents the bold status of the font.

color

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

italic

Specifies the italic status of the font.

name

Font name (e.g., "Calibri"). The name's length should not be greater than 31 characters.

size

Font size.

underline

Type of underline applied to the font. See Excel.RangeUnderlineStyle for details.

Property Details

bold

Represents the bold status of the font.

bold?: boolean;

Property Value

boolean

Remarks

[ API set: ExcelApi 1.1 ]

color

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

color?: string;

Property Value

string

Remarks

[ API set: ExcelApi 1.1 ]

italic

Specifies the italic status of the font.

italic?: boolean;

Property Value

boolean

Remarks

[ API set: ExcelApi 1.1 ]

name

Font name (e.g., "Calibri"). The name's length should not be greater than 31 characters.

name?: string;

Property Value

string

Remarks

[ API set: ExcelApi 1.1 ]

size

Font size.

size?: number;

Property Value

number

Remarks

[ API set: ExcelApi 1.1 ]

underline

Type of underline applied to the font. See Excel.RangeUnderlineStyle for details.

underline?: Excel.RangeUnderlineStyle | "None" | "Single" | "Double" | "SingleAccountant" | "DoubleAccountant";

Property Value

Excel.RangeUnderlineStyle | "None" | "Single" | "Double" | "SingleAccountant" | "DoubleAccountant"

Remarks

[ API set: ExcelApi 1.1 ]