Spread.Sheets Documentation
foreColor Method
GC.Spread.Sheets Namespace > CellRange type : 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 GC.Spread.Sheets.CellRange(sheet, row, col, rowCount, colCount, sheetArea);
var returnValue; // Type: any
returnValue = instance.foreColor(value);
function foreColor( 
   value : string
) : any;

Parameters

value
The color of the text.

Return Value

If no value is set, returns the cell foreground color; otherwise, returns the cell.
Example
The following examples set the forecolor.
activeSheet.getRange(2, -1, 1, -1, GC.Spread.Sheets.SheetArea.viewport).foreColor("green");
activeSheet.getCell(1,1).foreColor("red");
activeSheet.getRange(-1, 3, -1, 1, GC.Spread.Sheets.SheetArea.viewport).foreColor("blue");
Remarks
The default value is black.
See Also

Reference

CellRange type
Setting Colors