public FieldRange(string name, string info, Excel.Range value, bool retore = false) : base(name, info, retore) { _control = new ExcelRefEdit { AllowTextInput = false, DisplayMode = ExcelRefEdit.XlMode.AddressRelative }; _control.Range = value; }
public FieldNumber(string name, string info, double? value, double minValue, double maxValue = double.MaxValue, bool retore = false) : base(name, info, retore) { _minValue = minValue; _maxValue = maxValue; _control = new ExcelRefEdit { AllowTextInput = true, DisplayMode = ExcelRefEdit.XlMode.ValueNumber, MinNumber = minValue, MaxNumber = maxValue, Value = value }; }