示例#1
0
 public XLDecimalCriteria(IXLDataValidation dataValidation)
     : base(dataValidation)
 {
 }
        public void CopyFrom(IXLDataValidation dataValidation)
        {
            if (dataValidation == this) return;

            if (Ranges == null && dataValidation.Ranges != null)
            {
                Ranges = new XLRanges();
                dataValidation.Ranges.ForEach(r => Ranges.Add(r));
            }


            IgnoreBlanks = dataValidation.IgnoreBlanks;
            InCellDropdown = dataValidation.InCellDropdown;
            ShowErrorMessage = dataValidation.ShowErrorMessage;
            ShowInputMessage = dataValidation.ShowInputMessage;
            InputTitle = dataValidation.InputTitle;
            InputMessage = dataValidation.InputMessage;
            ErrorTitle = dataValidation.ErrorTitle;
            ErrorMessage = dataValidation.ErrorMessage;
            ErrorStyle = dataValidation.ErrorStyle;
            AllowedValues = dataValidation.AllowedValues;
            Operator = dataValidation.Operator;
            MinValue = dataValidation.MinValue;
            MaxValue = dataValidation.MaxValue;

        }
示例#3
0
 public XLDataValidation(IXLDataValidation dataValidation)
 {
     CopyFrom(dataValidation);
 }
示例#4
0
 public XLDataValidation(IXLDataValidation dataValidation, XLWorksheet worksheet)
     : this(worksheet)
 {
     _worksheet = worksheet;
     CopyFrom(dataValidation);
 }
示例#5
0
 public void Delete(IXLDataValidation dataValidation)
 {
     _dataValidations.RemoveAll(dv => dv.Ranges.Equals(dataValidation.Ranges));
 }
示例#6
0
 public IXLDataValidation Add(IXLDataValidation dataValidation)
 {
     return(Add(dataValidation, skipIntersectionsCheck: false));
 }
示例#7
0
 public XLTimeCriteria(IXLDataValidation dataValidation)
     : base(dataValidation)
 {
 }
 public XLTimeCriteria(IXLDataValidation dataValidation)
     : base(dataValidation)
 {
 }
 public XLDecimalCriteria(IXLDataValidation dataValidation)
     : base(dataValidation)
 {
 }
 public XLTextLengthCriteria(IXLDataValidation dataValidation)
     : base(dataValidation)
 {
 }
 internal XLValidationCriteria(IXLDataValidation dataValidation)
 {
     this.dataValidation = dataValidation;
 }
 public XLWholeNumberCriteria(IXLDataValidation dataValidation) : base(dataValidation)
 {
 }
 internal XLValidationCriteria(IXLDataValidation dataValidation)
 {
     this.dataValidation = dataValidation;
 }
 public XLDataValidation(IXLDataValidation dataValidation)
 {
     CopyFrom(dataValidation);
 }
 public void Add(IXLDataValidation dataValidation)
 {
     _dataValidations.Add(dataValidation);
 }
示例#16
0
 public XLTextLengthCriteria(IXLDataValidation dataValidation)
     : base(dataValidation)
 {
 }
 public void Delete(IXLDataValidation dataValidation)
 {
     _dataValidations.RemoveAll(dv => dv.Ranges.Equals(dataValidation.Ranges));
 }
 public XLWholeNumberCriteria(IXLDataValidation dataValidation): base(dataValidation)
 {
     
 }
示例#19
0
 public void Add(IXLDataValidation dataValidation)
 {
     _dataValidations.Add(dataValidation);
 }