Table of Contents

Method SetValue

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

SetValue(int, int, object)

Sets the value of a cell, as AutoCAD's SetValue(row, col, value): a string a text, an int, short, byte or a long within the 32 bits AutoCAD's whole number holds a Long, a double or float a Double. From R2007 on the value is written of its kind (90), in 91, 140 or 1, its text (302) the number as the invariant culture writes it, 7, its unit (94) kept and its format (300) taken away, as AutoCAD 2021 wrote 100.125 given to a cell of 1 in %lu4%pr3 (D33 u7), its flags (93) made 6 where they had the flag 1 of no value, as AutoCAD writes a value it is given, and the cell given the flag of its kind of value (0x40000) where it has it not, a cell reset or read of no value written 91 262144 as AutoCAD 2021 wrote it (D33e w01, w03 to w06); the text of a number of its kind Double as AutoCAD 2021 wrote it and showed it, of six places of decimals, 12.500000 for 12.5 (D28e v09, w30 to w33), where the library wrote 12.5, which AutoCAD showed as it was. Before R2007 a cell holds a text alone, and the value is written as its text, as SetTextString(int, int, string) writes one, a number as the invariant culture writes it, 12.5, which keeps it whole where AutoCAD 2021 wrote 12.500000 (w09): the text is all the cell holds. A pointer to a field (344) is taken out, its field erased where the table owns it and nothing else of the file points at it. The value the cell has, a text as the file writes it or as it reads, changes nothing. The block AutoCAD drew the table with is not drawn anew.

public void SetValue(int row, int col, object value)

Parameters

row int

The row, from nought.

col int

The column, from nought.

value object

The value.

Exceptions

ArgumentNullException

Thrown when the value is null.

ArgumentOutOfRangeException

Thrown when the cell is not one of the table's, or a number is not finite or a whole number beyond 32 bits.

ArgumentException

Thrown when the value is of another type, as a uint, a decimal or a bool, or a date or a point, for which the library knows no groups (the DXF reference does not describe a cell's value), or a text with a line break.

InvalidOperationException

Thrown when the cell is a block cell, or the table is erased.

SetValue(int, int, int, object)

Sets the value of a content of a cell, as AutoCAD's SetValue(row, column, contentIndex, value): of its one content, nought, as SetValue(int, int, object).

public void SetValue(int row, int column, int contentIndex, object value)

Parameters

row int

The row, from nought.

column int

The column, from nought.

contentIndex int

The content, nought.

value object

The value.

Exceptions

ArgumentNullException

Thrown when the value is null.

ArgumentOutOfRangeException

Thrown when the cell is not one of the table's, the content is not nought, or a number is out of range.

ArgumentException

Thrown when the value is of a kind not written.

InvalidOperationException

Thrown when the cell is a block cell, or the table is erased.