CellsColor

CellsColor class

Represents all types of color.

class CellsColor;

Properties

PropertyTypeDescription
isShapeColorbooleanGets and set the color which should apply to cell or shape.
typeColorTypeReadonly. The color type.
themeColorThemeColorGets the theme color. Only applies for theme color type.
colorIndexnumberGets and sets the color index in the color palette. Only applies of indexed color.
colorColorGets and sets the RGB color.
argbnumberGets and sets the color from a 32-bit ARGB value.
transparencynumberGets and sets transparency as a value from 0.0 (opaque) through 1.0 (clear).

Methods

MethodDescription
setTintOfShapeColor(number)Set the tint of the shape color

isShapeColor

Gets and set the color which should apply to cell or shape.

isShapeColor : boolean;

Remarks

The expression of the color of the cell and the shape is different. For example: the theme color with same tint value will be not same in the cell and the shape.

type

Readonly. The color type.

type : ColorType;

themeColor

Gets the theme color. Only applies for theme color type.

themeColor : ThemeColor;

colorIndex

Gets and sets the color index in the color palette. Only applies of indexed color.

colorIndex : number;

color

Gets and sets the RGB color.

color : Color;

argb

Gets and sets the color from a 32-bit ARGB value.

argb : number;

transparency

Gets and sets transparency as a value from 0.0 (opaque) through 1.0 (clear).

transparency : number;

setTintOfShapeColor(number)

Set the tint of the shape color

setTintOfShapeColor(tint: number) : void;

Parameters:

ParameterTypeDescription
tintnumber