Method Check
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Check(string, bool, Func<string, string>)
Makes a row that is a check box, ticked or not, that an extension gives the Properties panel: ticking it calls
setter with YesText, and clearing it with NoText. Where the setter is null the
row only shows the answer, as text.
public static CadPropertyRow Check(string label, bool isOn, Func<string, string> setter)
Parameters
labelstringThe label.
isOnboolWhether the box is ticked.
setterFunc<string, string>What changes the value, as of CadPropertyRow(string, string, Func<string, string>, IReadOnlyList<string>); null for a row that is only read.
Returns
- CadPropertyRow
The row.