Table of Contents

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

label string

The label.

value double

The length, in drawing units.

document CadDocument

The drawing whose units the row follows; read when the row is made.

setter Func<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.