ConditionalFormattingIcon

ConditionalFormattingIcon class

Represents the custom icon of conditional formatting rule.

class ConditionalFormattingIcon;

Properties

PropertyTypeDescription
imageDataUint8ArrayReadonly. Gets the icon set data.
typeIconSetTypeGets and sets the icon set type.
indexnumberGets and sets the icon’s index in the icon set.

Methods

MethodDescription
getImageData(Cell)Gets the image data with the setting of cell.
static getIconImageData(IconSetType, number)Get the icon set data

imageData

Readonly. Gets the icon set data.

imageData : Uint8Array;

type

Gets and sets the icon set type.

type : IconSetType;

index

Gets and sets the icon’s index in the icon set.

index : number;

getImageData(Cell)

Gets the image data with the setting of cell.

getImageData(cell: Cell) : Uint8Array;

Parameters:

ParameterTypeDescription
cellCellThe setting of cell.

Returns

Returns the image data of icon.

getIconImageData(IconSetType, number)

Get the icon set data

static getIconImageData(type: IconSetType, index: number) : Uint8Array;

Parameters:

ParameterTypeDescription
typeIconSetTypeicon’s type
indexnumbericon’s index