Esempio n. 1
0
        /// <summary>
        /// Creates a data validation object
        /// </summary>
        /// <param name="dataValidation">The Data validation object settings</param>
        public void AddValidationData(HSSFDataValidation dataValidation)
        {
            if (dataValidation == null)
            {
                throw new ArgumentException("objValidation must not be null");
            }
            DataValidityTable dvt = _sheet.GetOrCreateDataValidityTable();

            DVRecord dvRecord = dataValidation.CreateDVRecord(_workbook);
            dvt.AddDataValidation(dvRecord);
        }