SpreadJS Documentation
selectionBackColor Method
The selection's background color for the sheet.
Gets or sets the selection's background color for the sheet.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var returnValue; // Type: Object
returnValue = instance.selectionBackColor(value);
function selectionBackColor( 
   value : string
) : Object;

Parameters

value
The selection's background color for the sheet.

Return Value

The selection's background color for the sheet.
Example
activeSheet.selectionBackColor("Accent 6");
activeSheet.selectionBorderColor("Accent 1")
This example sets the background color for the selected cell or cells.
activeSheet.selectionBackColor("rgba(204,255,51, 0.3)");
Remarks
The default value is rgba(180,180,200,0.2).
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.