Class ExcelDataValidationWithFormula<T>
- Namespace
- OfficeOpenXml.DataValidation
- Assembly
- EPPlus.dll
A validation containing a formula
public abstract class ExcelDataValidationWithFormula<T> : ExcelDataValidation, IExcelDataValidation where T : IExcelDataValidationFormula
Type Parameters
T
- Inheritance
-
ExcelDataValidationWithFormula<T>
- Implements
- Derived
- Inherited Members
Fields
_workSheetName
Name of worksheet this datavalidation belongs to
protected string _workSheetName
Field Value
Properties
Formula
Formula - Either a {T} value (except for custom validation) or a spreadsheet formula
public T Formula { get; protected set; }
Property Value
- T
Methods
Validate()
Validates the configuration of the validation.
public override void Validate()
Exceptions
- InvalidOperationException
Will be thrown if invalid configuration of the validation. Details will be in the message of the exception.