Method Integer
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Integer(string, int, int, Func<int>, Action<int>)
Makes a whole number the app keeps, as OSMODE: asked "Enter new value for OSMODE <4133>:", a number outside
least to most refused with AutoCAD's "Requires an integer between 0 and 32767."
and asked again; set at once, no step of undo.
public static CadSystemVariable Integer(string name, int least, int most, Func<int> get, Action<int> set)
Parameters
namestringThe name.
leastintThe least value taken.
mostintThe greatest value taken.
getFunc<int>Reads the value.
setAction<int>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, or the least value is above the greatest.