Interface IRangeDataValidation¶
Namespace: OfficeOpenXml.DataValidation
Assembly: EPPlus.dll
Provides functionality for adding datavalidation to a range (ExcelRangeBase). Each method will return a configurable validation.
Methods¶
AddAnyDataValidation()¶
Adds a IExcelDataValidationAny to the range.
Returns¶
A ExcelDataValidationAny that can be configured for any validation
AddCustomDataValidation()¶
Adds a IExcelDataValidationCustom to the range.
Returns¶
A IExcelDataValidationCustom that can be configured for custom validation
AddDateTimeDataValidation()¶
Adds a ExcelDataValidationDateTime to the range
Returns¶
A ExcelDataValidationDecimal that can be configured for datetime data validation
AddDecimalDataValidation()¶
Adds a ExcelDataValidationDecimal to the range
Returns¶
A ExcelDataValidationDecimal that can be configured for decimal data validation
AddIntegerDataValidation()¶
Adds a ExcelDataValidationInt to the range
Returns¶
A ExcelDataValidationInt that can be configured for integer data validation
AddListDataValidation()¶
Adds a IExcelDataValidationList to the range
Returns¶
A ExcelDataValidationList that can be configured for datetime data validation
AddTextLengthDataValidation()¶
Adds a ExcelDataValidationInt regarding text length validation to the range.
Returns¶
AddTimeDataValidation()¶
Adds a IExcelDataValidationTime to the range.
Returns¶
A IExcelDataValidationTime that can be configured for time data validation
ClearDataValidation(bool)¶
Removes validation from the cell/range
Parameters¶
deleteIfEmpty bool
Delete the validation if it has no more addresses its being applied to. If set to false an InvalidOperationException will be thrown if all addresses of a datavalidation has been cleared.
Exceptions¶
Thrown if deleteIfEmpty is false and all addresses of a datavalidation has been cleared.