CellsColor

CellsColor class

Represents all types of color.

class CellsColor;

Methods

MethodDescription
isShapeColor()Gets and set the color which should apply to cell or shape.
setIsShapeColor(boolean)Gets and set the color which should apply to cell or shape.
getType()The color type.
getThemeColor()Gets the theme color. Only applies for theme color type.
setThemeColor(ThemeColor)Gets the theme color. Only applies for theme color type.
getColorIndex()Gets and sets the color index in the color palette. Only applies of indexed color.
setColorIndex(number)Gets and sets the color index in the color palette. Only applies of indexed color.
getColor()Gets and sets the RGB color.
setColor(Color)Gets and sets the RGB color.
getArgb()Gets and sets the color from a 32-bit ARGB value.
setArgb(number)Gets and sets the color from a 32-bit ARGB value.
getTransparency()Gets and sets transparency as a value from 0.0 (opaque) through 1.0 (clear).
setTransparency(number)Gets and sets transparency as a value from 0.0 (opaque) through 1.0 (clear).
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.

setIsShapeColor(boolean)

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

setIsShapeColor(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

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.

getType()

The color type.

getType() : ColorType;

Returns

ColorType

getThemeColor()

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

getThemeColor() : ThemeColor;

Returns

ThemeColor

setThemeColor(ThemeColor)

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

setThemeColor(value: ThemeColor) : void;

Parameters:

ParameterTypeDescription
valueThemeColorThe value to set.

getColorIndex()

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

getColorIndex() : number;

setColorIndex(number)

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

setColorIndex(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getColor()

Gets and sets the RGB color.

getColor() : Color;

Returns

Color

setColor(Color)

Gets and sets the RGB color.

setColor(value: Color) : void;

Parameters:

ParameterTypeDescription
valueColorThe value to set.

getArgb()

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

getArgb() : number;

setArgb(number)

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

setArgb(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getTransparency()

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

getTransparency() : number;

setTransparency(number)

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

setTransparency(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

setTintOfShapeColor(number)

Set the tint of the shape color

setTintOfShapeColor(tint: number) : void;

Parameters:

ParameterTypeDescription
tintnumber