Method SetFieldCode
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
SetFieldCode(int, int, int, string)
Gives a text cell a field, as AutoCAD's SetFieldId(row, column, fieldId, flag) does: a FIELD of the code, owned by
the table, the cell's 344 pointed at it, as SetFormula(int, int, int, string) writes a formula, the field the cell had before
erased where nothing else holds it. The cell's value is left as it is, for SetFieldValue(int, int, object) to give it the
words the field comes to.
public void SetFieldCode(int row, int column, int contentIndex, string fieldCode)
Parameters
rowintThe row, from nought.
columnintThe column, from nought.
contentIndexintThe content, nought.
fieldCodestringThe field, in its markers:
%<\AcVar Login>%.
Exceptions
- ArgumentNullException
Thrown when the code is null.
- ArgumentOutOfRangeException
Thrown when the cell is not one of the table's, or the content is not nought.
- ArgumentException
Thrown when the code is not one field in its markers.
- InvalidOperationException
Thrown when the cell is a block cell, the file is older than R2004 (AC1018), or the table is erased.