Interface IExcelDataValidation
A generic interface for all data validations. Specialized implementation interfaces should inherit this interface.
Namespace: OfficeOpenXml.DataValidation.Contracts
Assembly: EPPlus.dll
Syntax
public interface IExcelDataValidationProperties
Address
Address of data validation
Declaration
ExcelAddress Address { get; }Property Value
| Type | Description | 
|---|---|
| ExcelAddress | 
AllowBlank
True if input message should be shown
Declaration
bool? AllowBlank { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Nullable<System.Boolean> | 
AllowsOperator
True if the current validation type allows operator.
Declaration
bool AllowsOperator { get; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
As
Validates the state of the validation.
Declaration
ExcelDataValidationAsType As { get; }Property Value
| Type | Description | 
|---|---|
| ExcelDataValidationAsType | 
Error
Error message box text (see property ShowErrorMessage)
Declaration
string Error { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | 
ErrorStyle
Controls how Excel will handle invalid values.
Declaration
ExcelDataValidationWarningStyle ErrorStyle { get; set; }Property Value
| Type | Description | 
|---|---|
| ExcelDataValidationWarningStyle | 
ErrorTitle
Title of error message box (see property ShowErrorMessage)
Declaration
string ErrorTitle { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | 
Prompt
Info message text (see property ShowErrorMessage)
Declaration
string Prompt { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | 
PromptTitle
Title of info box if input message should be shown (see property ShowInputMessage)
Declaration
string PromptTitle { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | 
ShowErrorMessage
True if error message should be shown.
Declaration
bool? ShowErrorMessage { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Nullable<System.Boolean> | 
ShowInputMessage
True if input message should be shown
Declaration
bool? ShowInputMessage { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Nullable<System.Boolean> | 
Uid
Unique id of the data validation
Declaration
string Uid { get; }Property Value
| Type | Description | 
|---|---|
| System.String | 
ValidationType
Validation type
Declaration
ExcelDataValidationType ValidationType { get; }Property Value
| Type | Description | 
|---|---|
| ExcelDataValidationType | 
Methods
Validate()
Declaration
void Validate()