Method InsertFormula
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
InsertFormula(CadDocument, string, int, int, string)
Puts a formula into a cell, as Insert Formula does: =Sum(A1:B3), =Average(C2:C9), =Count(A1:A5),
a cell =B2 or an equation =A1*B1+2; the cell shows what the formula comes to, and every formula of the
table is worked out again after each edit, one undo step. A formula that cannot be worked out (a cell of words in
it, a division by nought) shows #####.
public static CadEditResult InsertFormula(CadDocument document, string handle, int row, int column, string formula)
Parameters
documentCadDocumentThe document.
handlestringThe table's handle.
rowintThe row, from nought.
columnintThe column, from nought.
formulastringThe formula, from its
=.
Returns
- CadEditResult
What came of it; refused where the formula is not one, the cell is a block cell or locked, or the drawing is one before R2004.