SpreadJS 13
GC.Spread.Sheets Namespace / CellRange type / themeFont Method
The cell's theme font.
In This Topic
    themeFont Method
    In This Topic
    Gets or sets the theme font for the cell.
    Syntax
    var instance = new GC.Spread.Sheets.CellRange(sheet, row, col, rowCount, colCount, sheetArea);
    var returnValue; // Type: any
    returnValue = instance.themeFont(value);
    function themeFont( 
       (optional) value : string
    ) : any;

    Parameters

    value
    The cell's theme font.

    Return Value

    If no value is set, returns the cell's theme font; otherwise, returns the cell.
    Example
    The following examples use the themeFont method.
    sheet.getCell(3, 3).backColor("Background 1");
    sheet.getCell(3, 4).backColor("Text 1");
    sheet.getCell(3, 5).backColor("Background 2");
    sheet.getCell(3, 6).backColor("Text 2");
    sheet.getCell(3, 7).backColor("Accent 1");
    sheet.getCell(3, 8).backColor("Accent 2");
    sheet.getCell(3, 9).backColor("Accent 3");
    sheet.getCell(3, 10).backColor("Accent 4");
    sheet.getCell(3, 11).backColor("Accent 5");
    sheet.getCell(3, 12).backColor("Accent 6");
    sheet.getCell(5, 1).themeFont("Body");
    activeSheet.getCell(1, -1).themeFont("Body");
    activeSheet.getCell(1,0).value("2");
    activeSheet.getCell(-1, 0).themeFont("Body");
    activeSheet.getCell(0,0).value("Test");
    See Also