Table of Contents

Method TextStringForEditing

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

TextStringForEditing(int, int)

Gets the text of a cell as the editor opens it, as AutoCAD 2021's GetTextString(FormatOption.ForEditing): a number as it is to 16 figures, its zeros and the places of its format left off, 1.5 for a cell that shows 1.5000, 0.333333333333333 for a third, 1.000000000000000E+03 for 1000 in powers of ten, 10923/32768 for a third in fractions, 1'-0 1/2" for 12.5 in feet and inches and 1, 5, 0 for a point; the format's unit is its %lu (6, the drawing's, follows LUNITS) and a cell of none is in decimals. The thousands, prefix and suffix of a format are left out. A date is the date alone where it has no time, the time alone where it is on the day of a time (30 December 1899) and both otherwise, whatever its format: 1/1/2020, 12:30:00 PM, 1/1/2020 12:30:00 PM in the culture of the machine. Any other cell, a text, a block or one before R2007, gives its TextString(int, int).

public string TextStringForEditing(int row, int col)

Parameters

row int

The row, from nought.

col int

The column, from nought.

Returns

string

The text.

Exceptions

ArgumentOutOfRangeException

Thrown when the cell is not one of the table's.