Javascript (Usage) | |
---|
var instance = new GC.Spread.Sheets.CellRange(sheet, row, col, rowCount, colCount, sheetArea);
var returnValue; // Type: any
returnValue = instance.formatter(value); |
Javascript (Specification) | |
---|
function formatter(
: undefined
) : any; |
パラメータ
- value
- セルのフォーマッター文字列またはオブジェクト。
戻り値の型
値が設定されていない場合は、セルのフォーマッター文字列またはオブジェクトを返します。値が設定されている場合は、セルを返します。
次のサンプルコードは、formatterメソッドを設定します。
activeSheet.getCell(1,1).formatter("0.000%");
activeSheet.getCell(1, -1).formatter("0.000%");
activeSheet.getCell(1,0).value("2");
activeSheet.getCell(-1, 0).formatter("0.000%");
activeSheet.getCell(0,0).value("2");