SpreadJS Documentation
sheetTabColor Method
The color string.
Gets or sets a color string used to represent the sheet tab color, such as "red", "#FFFF00", "rgb(255,0,0)", "Accent 5", and so on.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var returnValue; // Type: Object
returnValue = instance.sheetTabColor(value);
function sheetTabColor( 
   value : string
) : Object;

Parameters

value
The color string.

Return Value

The color string used to represent the sheet tab color.
Example
This example sets the tab color.
spread.setSheetCount(3);
spread.startSheetIndex(0);
spread.getSheet(0).sheetTabColor("red");
spread.getSheet(1).sheetTabColor("#FFFF00");
spread.setSheetCount(3);
spread.startSheetIndex(0);
spread.getSheet(0).sheetTabColor("red");
spread.getSheet(1).sheetTabColor("#FFFF00");
spread.getSheet(2).sheetTabColor("Accent 4");
Remarks
The default value is the current theme color.
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.