IDataValidationRule
Contract for data validation rules that validate cell values and provide input prompts and error alerts.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model.DataValidation
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public interface IDataValidationRule
Derived Classes:
Methods
Evaluates whether the specified cell value satisfies the validation rule and returns the validation result.
bool Evaluate(Worksheet worksheet, int rowIndex, int columnIndex, ICellValue cellValue)
The worksheet.
rowIndexintIndex of the row.
columnIndexintIndex of the column.
cellValueICellValueThe cell value.
Returns:Retrurns True if the rule is satisfied, else returns False.
Properties
Descriptive text in the error alert explaining why the input was rejected.
string ErrorAlertContent { get; }
The content of the error alert.
Title text displayed in the error alert dialog when validation fails.
string ErrorAlertTitle { get; }
The error alert title.
Severity level of the error alert, determining whether invalid input is blocked or allowed.
ErrorStyle ErrorStyle { get; }
The error style.
Descriptive text in the input prompt explaining valid values or constraints to the user.
string InputMessageContent { get; }
The content of the input message.
Title text displayed in the input prompt when the user selects a validated cell.
string InputMessageTitle { get; }
The input message title.
Indicates whether an error alert is displayed when the user enters invalid data.
bool ShowErrorMessage { get; }
The value indicating whether an input message should be shown.
Indicates whether an input prompt is displayed when the cell is selected, guiding users on valid input.
bool ShowInputMessage { get; }
The value indicating whether an input message should be shown.