using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OfficeOpenXml.DataValidation.Contracts
{
///
/// Interface for data validation
///
public interface IExcelDataValidation
{
///
/// Address of data validation
///
ExcelAddress Address { get; }
///
/// Validation type
///
ExcelDataValidationType ValidationType { get; }
///
/// Controls how Excel will handle invalid values.
///
ExcelDataValidationWarningStyle ErrorStyle{ get; set; }
///
/// True if input message should be shown
///
bool? AllowBlank { get; set; }
///
/// True if input message should be shown
///
bool? ShowInputMessage { get; set; }
///
/// True if error message should be shown.
///
bool? ShowErrorMessage { get; set; }
///
/// Title of error message box (see property ShowErrorMessage)
///
string ErrorTitle { get; set; }
///
/// Error message box text (see property ShowErrorMessage)
///
string Error { get; set; }
///
/// Title of info box if input message should be shown (see property ShowInputMessage)
///
string PromptTitle { get; set; }
///
/// Info message text (see property ShowErrorMessage)
///
string Prompt { get; set; }
///
/// True if the current validation type allows operator.
///
bool AllowsOperator { get; }
///
/// Validates the state of the validation.
///
void Validate();
}
}