SpreadJS Documentation
foreColor Method
The color of the text.
Gets or sets the color of the text in 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.foreColor(value);
function foreColor( 
   value : string
) : string;

Parameters

value
The color of the text.

Return Value

The cell foreground color.
Example
This example sets the cell forecolor.
activeSheet.getCell(1,1).foreColor("red");
Remarks
The default value is black.
See Also

Reference

Cell type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.