Method Real
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Real(string, double, Func<double>, Action<double>)
Makes a real number above nought the app keeps, as POLARANG: asked "Enter new value for POLARANG <90>:", shown
to as few places as it needs; nought or less refused with "Value must be positive and nonzero.", one above
most with "Value must be at most 360.", and asked again; set at once, no step of undo.
public static CadSystemVariable Real(string name, double most, Func<double> get, Action<double> set)
Parameters
namestringThe name.
mostdoubleThe greatest value taken, 360 for an angle in degrees.
getFunc<double>Reads the value.
setAction<double>Sets a value taken.
Returns
- CadSystemVariable
The variable.
Exceptions
- ArgumentNullException
Thrown when either delegate is null.
- ArgumentException
Thrown when the name is empty or has a space.