Interface IRangeDataValidation
Provides functionality for adding datavalidation to a range (Excel
Namespace: OfficeOpenXml.DataValidation
Assembly: EPPlus.dll
Syntax
public interface IRangeDataValidation
Methods
AddAnyDataValidation()
Adds a IExcel
Declaration
IExcelDataValidationAny AddAnyDataValidation()
Returns
Type | Description |
---|---|
IExcel |
A Excel |
AddCustomDataValidation()
Adds a IExcel
Declaration
IExcelDataValidationCustom AddCustomDataValidation()
Returns
Type | Description |
---|---|
IExcel |
A IExcel |
AddDateTimeDataValidation()
Adds a Excel
Declaration
IExcelDataValidationDateTime AddDateTimeDataValidation()
Returns
Type | Description |
---|---|
IExcel |
A Excel |
AddDecimalDataValidation()
Adds a Excel
Declaration
IExcelDataValidationDecimal AddDecimalDataValidation()
Returns
Type | Description |
---|---|
IExcel |
A Excel |
AddIntegerDataValidation()
Adds a Excel
Declaration
IExcelDataValidationInt AddIntegerDataValidation()
Returns
Type | Description |
---|---|
IExcel |
A Excel |
AddListDataValidation()
Adds a IExcel
Declaration
IExcelDataValidationList AddListDataValidation()
Returns
Type | Description |
---|---|
IExcel |
A Excel |
AddTextLengthDataValidation()
Adds a Excel
Declaration
IExcelDataValidationInt AddTextLengthDataValidation()
Returns
Type | Description |
---|---|
IExcel |
AddTimeDataValidation()
Adds a IExcel
Declaration
IExcelDataValidationTime AddTimeDataValidation()
Returns
Type | Description |
---|---|
IExcel |
A IExcel |
ClearDataValidation(Boolean)
Removes validation from the cell/range
Declaration
void ClearDataValidation(bool deleteIfEmpty = false)
Parameters
Type | Name | Description |
---|---|---|
System. |
deleteIfEmpty | Delete the validation if it has no more addresses its being applied to. If set to false an System. |
Exceptions
Type | Condition |
---|---|
System. |
Thrown if |