Excel.ConditionalRangeFont class

This object represents the font attributes (font style, color, etc.) for an object.

[ API set: ExcelApi 1.6 ]

Extends
OfficeExtension.ClientObject

Properties

bold

Represents the bold status of font.

[ API set: ExcelApi 1.6 ]

color

HTML color code representation of the text color. E.g. #FF0000 represents Red.

[ API set: ExcelApi 1.6 ]

italic

Represents the italic status of the font.

[ API set: ExcelApi 1.6 ]

strikethrough

Represents the strikethrough status of the font.

[ API set: ExcelApi 1.6 ]

underline

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

[ API set: ExcelApi 1.6 ]

Methods

clear()

Resets the font formats.

[ API set: ExcelApi 1.6 ]

load(option)

Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties.

toJSON()

Property Details

bold

Represents the bold status of font.

[ API set: ExcelApi 1.6 ]

bold: boolean;
Property Value
boolean

color

HTML color code representation of the text color. E.g. #FF0000 represents Red.

[ API set: ExcelApi 1.6 ]

color: string;
Property Value
string

italic

Represents the italic status of the font.

[ API set: ExcelApi 1.6 ]

italic: boolean;
Property Value
boolean

strikethrough

Represents the strikethrough status of the font.

[ API set: ExcelApi 1.6 ]

strikethrough: boolean;
Property Value
boolean

underline

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

[ API set: ExcelApi 1.6 ]

underline: Excel.ConditionalRangeFontUnderlineStyle | "None" | "Single" | "Double";
Property Value
Excel.ConditionalRangeFontUnderlineStyle | "None" | "Single" | "Double"

Method Details

clear()

Resets the font formats.

[ API set: ExcelApi 1.6 ]

clear(): void;
Returns
void

load(option)

Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties.

load(option?: string | string[]): Excel.ConditionalRangeFont;
Parameters
option
string | string[]

A comma-delimited string or an array of strings that specify the properties to load.

Returns
Remarks

In addition to this signature, this method has the following signatures:

load(option?: { select?: string; expand?: string; }): Excel.ConditionalRangeFont - Where option.select is a comma-delimited string that specifies the properties to load, and options.expand is a comma-delimited string that specifies the navigation properties to load.

load(option?: { select?: string; expand?: string; top?: number; skip?: number }): Excel.ConditionalRangeFont - Only available on collection types. It is similar to the preceding signature. Option.top specifies the maximum number of collection items that can be included in the result. Option.skip specifies the number of items that are to be skipped and not included in the result. If option.top is specified, the result set will start after skipping the specified number of items.

toJSON()

toJSON(): Excel.Interfaces.ConditionalRangeFontData;
Returns