SpreadJS Documentation
backColor Method
The cell background color.
Gets or sets the background color for the cell, such as "red", "#FFFF00", "rgb(255,0,0)", "Accent 5", and so on.
Syntax
var instance = new GcSpread.Sheets.Cell(sheet, row, col, sheetArea);
var returnValue; // Type: string
returnValue = instance.backColor(value);
function backColor( 
   value : string
) : string;

Parameters

value
The cell background color.

Return Value

The cell background color.
Example
This example sets the the cell backcolor.
activeSheet.getCell(1,1).backColor("lightgreen");
Remarks
You can reset the cell backcolor by setting the value to undefined. For example, activeSheet.getCell(1, 1).backColor(undefined);.
See Also

Reference

Cell type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.