protected Formula CreateFormula(string expression, int row, int col) { ISheetReference @ref = MyFormulaEngine.ReferenceFactory.Cell(row, col); Formula f = MyFormulaEngine.AddFormula(expression, @ref); return(f); }
internal Variable(FormulaEngine engine, string name) { MyEngine = engine; MyReference = (NamedReference)engine.ReferenceFactory.Named(name); engine.AddFormula("=0", MyReference); MyReference = (NamedReference)engine.ReferencePool.GetPooledReference(MyReference); MyReference.OperandValue = null; }