Method Length
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Length(string, double, CadDocument, Func<double, string>)
Makes a row for a length, written and read in the drawing's units, LUNITS and LUPREC: 12.5 is "12.5000" in decimal units to four places, and 14 inches typed as 1'2" is read in architectural units. Text that does not read is refused with "<label> is a number." and the setter is not called.
public static CadPropertyRow Length(string label, double value, CadDocument document, Func<double, string> setter)
Parameters
labelstringThe label.
valuedoubleThe length, in drawing units.
documentCadDocumentThe drawing whose units the row follows; read when the row is made.
setterFunc<double, string>What changes the value, given the length; null for a row that is only read.
Returns
- CadPropertyRow
The row.
Exceptions
- ArgumentNullException
Thrown when the document is null.