ColorHelper
ColorHelper class
Provides helper functions about color.
class ColorHelper;
Methods
| Method | Description | 
|---|---|
| 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:
| Parameter | Type | Description | 
|---|---|---|
| oleColor | number | The value of OLE_COLOR. | 
Returns
The Color object.
toOleColor(Color, Workbook)
Convert color to OLE_COLOR
static toOleColor(color: Color, workbook: Workbook) : number;
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| color | Color | The Color object. | 
| workbook | Workbook | 
Returns
The value of OLE_COLOR