Excel.Interfaces.ShapeFontLoadOptions interface

Represents the font attributes, such as font name, font size, and color, for a shape's TextRange object.

[ API set: ExcelApi 1.9 ]

Properties

$all
bold

Represents the bold status of font. Returns null the TextRange includes both bold and non-bold text fragments.

[ API set: ExcelApi 1.9 ]

color

The HTML color code representation of the text color (e.g. "#FF0000" represents red). Returns null if the TextRange includes text fragments with different colors.

[ API set: ExcelApi 1.9 ]

italic

Represents the italic status of font. Returns null if the TextRange includes both italic and non-italic text fragments.

[ API set: ExcelApi 1.9 ]

name

Represents font name (e.g. "Calibri"). If the text is Complex Script or East Asian language, this is the corresponding font name; otherwise it is the Latin font name.

[ API set: ExcelApi 1.9 ]

size

Represents font size in points (e.g. 11). Returns null if the TextRange includes text fragments with different font sizes.

[ API set: ExcelApi 1.9 ]

underline

Type of underline applied to the font. Returns null if the TextRange includes text fragments with different underline styles. See Excel.ShapeFontUnderlineStyle for details.

[ API set: ExcelApi 1.9 ]

Property Details

$all

$all?: boolean;

Property Value

boolean

bold

Represents the bold status of font. Returns null the TextRange includes both bold and non-bold text fragments.

[ API set: ExcelApi 1.9 ]

bold?: boolean;

Property Value

boolean

color

The HTML color code representation of the text color (e.g. "#FF0000" represents red). Returns null if the TextRange includes text fragments with different colors.

[ API set: ExcelApi 1.9 ]

color?: boolean;

Property Value

boolean

italic

Represents the italic status of font. Returns null if the TextRange includes both italic and non-italic text fragments.

[ API set: ExcelApi 1.9 ]

italic?: boolean;

Property Value

boolean

name

Represents font name (e.g. "Calibri"). If the text is Complex Script or East Asian language, this is the corresponding font name; otherwise it is the Latin font name.

[ API set: ExcelApi 1.9 ]

name?: boolean;

Property Value

boolean

size

Represents font size in points (e.g. 11). Returns null if the TextRange includes text fragments with different font sizes.

[ API set: ExcelApi 1.9 ]

size?: boolean;

Property Value

boolean

underline

Type of underline applied to the font. Returns null if the TextRange includes text fragments with different underline styles. See Excel.ShapeFontUnderlineStyle for details.

[ API set: ExcelApi 1.9 ]

underline?: boolean;

Property Value

boolean