Class ExcelDataValidation¶
Namespace: OfficeOpenXml.DataValidation
Assembly: EPPlus.dll
Abstract base class for all Excel datavalidations. Contains functionlity which is common for all these different validation types.
Inheritance¶
Derived¶
ExcelDataValidationAny
ExcelDataValidationWithFormula<T>
Implements¶
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Constructors¶
ExcelDataValidation(string, string, ExcelWorksheet)¶
Constructor
Parameters¶
uid string
Id for validation
address string
adress validation is applied to
The worksheet
ExcelDataValidation(XmlReader, ExcelWorksheet)¶
Read-File Constructor
Parameters¶
xr XmlReader
The worksheet
ExcelDataValidation(ExcelDataValidation, ExcelWorksheet)¶
Copy-Constructor
Parameters¶
validation ExcelDataValidation
Validation to copy from
The worksheet
Properties¶
Address¶
Address of data validation
Property Value¶
AllowBlank¶
True if blanks should be allowed
Property Value¶
bool?
AllowsOperator¶
True if the current validation type allows operator.
Property Value¶
As¶
Us this property to case IExcelDataValidations to its subtypes
Property Value¶
Error¶
Error message box text
Property Value¶
ErrorStyle¶
Warning style
Property Value¶
ExcelDataValidationWarningStyle
ErrorTitle¶
Title of error message box
Property Value¶
ImeMode¶
Mode for east-asian languages who use Input Method Editors(IME)
Property Value¶
IsStale¶
Indicates whether this instance is stale, see https://github.com/EPPlusSoftware/EPPlus/wiki/Data-validation-Exceptions DEPRECATED as of Epplus 6.2. This as validations can no longer be stale since all attributes are now always fresh and held in the system.
Property Value¶
OnFormulaChanged¶
Event method for changing internal type when referring to an external worksheet.
Property Value¶
Action<OnFormulaChangedEventArgs>
Operator¶
Operator for comparison between the entered value and Formula/Formulas.
Property Value¶
Prompt¶
Text of the validation message box.
Property Value¶
PromptTitle¶
Title of the validation message box.
Property Value¶
ShowErrorMessage¶
True if error message should be shown
Property Value¶
bool?
ShowInputMessage¶
True if input message should be shown
Property Value¶
bool?
Uid¶
Uid of the data validation
Property Value¶
ValidationType¶
Validation type
Property Value¶
Methods¶
Validate()¶
This method will validate the state of the validation
Exceptions¶
If the state breaks the rules of the validation