Method Text
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Text(string, Func<string>, Func<string, bool>)
Makes a text the app keeps that may be empty, as POLARADDANG: asked "Enter new value for POLARADDANG, or . for none <"">:", a period for an empty text; one refused written off with AutoCAD's "Cannot set POLARADDANG to that value." and not asked again; set at once, no step of undo.
public static CadSystemVariable Text(string name, Func<string> get, Func<string, bool> take)
Parameters
namestringThe name.
getFunc<string>Reads the value.
takeFunc<string, bool>Sets a text typed, empty for the period, and gives whether it was taken.
Returns
- CadSystemVariable
The variable.
Exceptions
- ArgumentNullException
Thrown when either delegate is null.
- ArgumentException
Thrown when the name is empty or has a space.