GcSpread.Sheets Namespace > Sheet type : getFormulaInformation Method |
var instance = new GcSpread.Sheets.Sheet(name); var value; // Type: FormulaInformation value = instance.getFormulaInformation(row, col);
function getFormulaInformation( row : number, col : number ) : FormulaInformation;
activeSheet.setValue(0,0,1); activeSheet.setValue(0,1,2); activeSheet.setValue(0,2,10); activeSheet.getCell(1,1).formula("=SUM(A1:C1)"); var test = activeSheet.getFormulaInformation(1,1, GcSpread.Sheets.SheetArea.viewport); alert(test.formula);
activeSheet.setValue(0, 2, 3); activeSheet.setFormula(1,1,"C1+D1",GcSpread.Sheets.SheetArea.viewport); var information = activeSheet.getFormulaInfomation(1, 1); alert(information.hasFormula);