ColorHelper

ColorHelper class

Provides helper functions about color.

class ColorHelper;

Methods

MethodDescription
isNull()Checks whether the implementation object is null.
static fromOleColor(number)Convert OLE_COLOR.
static toOleColor(Color, Workbook)Convert color to OLE_COLOR

isNull()

Checks whether the implementation object is null.

isNull() : boolean;

fromOleColor(number)

Convert OLE_COLOR.

static fromOleColor(oleColor: number) : Color;

Parameters:

ParameterTypeDescription
oleColornumberThe value of OLE_COLOR.

Returns

The Color object.

toOleColor(Color, Workbook)

Convert color to OLE_COLOR

static toOleColor(color: Color, workbook: Workbook) : number;

Parameters:

ParameterTypeDescription
colorColorThe Color object.
workbookWorkbook

Returns

The value of OLE_COLOR