Table of Contents

Method Number

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Number(string, double, Func<double, string>)

Makes a row for a number typed as it is, in the invariant culture: 12.5, whatever the machine's separator. Typing "abc" is refused with "<label> is a number." and the setter is not called.

public static CadPropertyRow Number(string label, double value, Func<double, string> setter)

Parameters

label string

The label.

value double

The value.

setter Func<double, string>

What changes the value, given the number, as of CadPropertyRow(string, string, Func<string, string>, IReadOnlyList<string>): null where it was changed, else the words of the refusal; null for a row that is only read.

Returns

CadPropertyRow

The row.