SpreadJS製品ヘルプ
themeFont メソッド
GC.Spread.Sheets 名前空間 > CellRange タイプ : themeFont メソッド
セルのテーマフォント。
セルのテーマフォントを取得または設定します。
シンタックス
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;

パラメータ

value
セルのテーマフォント。

戻り値の型

値が設定されていない場合は、セルのテーマフォントを返します。値が設定されている場合は、セルを返します。
使用例
次のサンプルコードは、themeFontメソッドを使用します。
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");
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");
関連トピック

参照

CellRange タイプ
テーマの使用
テーマの使用