Table of Contents

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

document CadDocument

The document.

handle string

The table's handle.

row int

The row, from nought.

column int

The column, from nought.

formula string

The 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.