Method InsertField
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
InsertField(CadDocument, string, int, int, string)
Puts a field into a cell, as Insert Field does with the Field dialog's code: the cell shows the words the field comes to, and keeps the field to evaluate again, one undo step.
public static CadEditResult InsertField(CadDocument document, string handle, int row, int column, string fieldCode)
Parameters
documentCadDocumentThe document.
handlestringThe table's handle.
rowintThe row, from nought.
columnintThe column, from nought.
fieldCodestringThe field in its markers, as the Field dialog gives it:
%<\AcVar Login>%.
Returns
- CadEditResult
What came of it; refused where the code is no field, the cell is a block cell or locked, or the drawing is one before R2004.