Spread.Sheets Documentation
font Method
The cell font.
Gets or sets the font for the cell, such as "normal normal normal 20px/normal Arial".
Syntax
var instance = new GC.Spread.Sheets.CellRange(sheet, row, col, rowCount, colCount, sheetArea);
var returnValue; // Type: any
returnValue = instance.font(value);
function font( 
   value : string
) : any;

Parameters

value
The cell font.

Return Value

If no value is set, returns the cell's font; otherwise, returns the cell.
Example
The following examples set the font.
activeSheet.getRange(2, -1, 1, -1, GC.Spread.Sheets.SheetArea.viewport).font("12pt Arial");
activeSheet.getCell(1,1).font("8pt Arial");
activeSheet.getRange(-1, 3, -1, 1, GC.Spread.Sheets.SheetArea.viewport).font("12pt Arial");
See Also

Reference

CellRange type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.