Method SetTextString
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
SetTextString(int, int, string)
Sets the text of a cell, as AutoCAD's SetTextString: before R2007 its groups written anew, as AutoCAD 2021
writes them, the text in pieces of 250 letters in groups 3, the last in 1, a letter the file's code page lacks
written as its escape within its piece and an escape given counted as its one letter, so that 300 D with stroke,
given as letters or as escapes, are a 3 of 250 escapes and a 1 of 50 (AutoCAD reads a cell in groups 2 as empty, and
the escapes of each piece alone); from R2007 on its value written as a text (90 of 4), in pieces of 2 and a last 1, and
its text in pieces of 303 and a last 302, the value's flags (93) made 6 where they had the flag 1 of no value, which
AutoCAD 2021 reads as none whatever the text (a block cell made a text cell and given M16 read empty), and the cell
given the flag of its kind of value (91 262144) where it has it not, as AutoCAD 2021 gave a cell reset (D33e w10).
An empty text
is, from R2007 on, the value of none ResetValue(int, int) leaves, as AutoCAD 2021 wrote it (93 7, 90 0, the flag
0x40000 taken out, D33c r09, D33d s01 to s10), the looks of the content gone with it as there, whatever the cell held:
B-12, 1.5 or the empty text of the title's hidden cell given an empty text are of no value. A pointer to a
field (344) is taken out, the text being the cell's own now, and the field erased with its children where the table
owns it and nothing else of the file points at it, a copy of the table among them. The words the cell has, as they
are written or as they read, change nothing. The block AutoCAD drew the table with is not drawn anew.
public void SetTextString(int row, int col, string value)
Parameters
rowintThe row, from nought.
colintThe column, from nought.
valuestringThe text, with its codes, as
\Pfor a new line.
Exceptions
- ArgumentNullException
Thrown when the text is null.
- ArgumentOutOfRangeException
Thrown when the cell is not one of the table's.
- ArgumentException
Thrown when the text has a line break in it, which a group does not hold.
- InvalidOperationException
Thrown when the cell is a block cell, or the table is erased.
SetTextString(int, int, int, string)
Sets the text of a content of a cell, as AutoCAD's SetTextString(row, column, contentIndex, text): of its one content, nought, as SetTextString(int, int, string).
public void SetTextString(int row, int column, int contentIndex, string text)
Parameters
rowintThe row, from nought.
columnintThe column, from nought.
contentIndexintThe content, nought.
textstringThe text.
Exceptions
- ArgumentNullException
Thrown when the text is null.
- ArgumentOutOfRangeException
Thrown when the cell is not one of the table's, or the content is not nought.
- ArgumentException
Thrown when the text has a line break in it.
- InvalidOperationException
Thrown when the cell is a block cell, or the table is erased.