Abstract base for data validation rules, providing common infrastructure for input messages, error alerts, and validation evaluation.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model.DataValidation
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public abstract class DataValidationRuleBase : IDataValidationRule
Inheritance: objectDataValidationRuleBase
Derived Classes:
Implements:
Constructors
Initializes a new DataValidationRuleBase from the specified configuration context.
protected DataValidationRuleBase(DataValidationRuleContextBase context)
The context.
Methods
Evaluates whether the specified cell value satisfies the validation rule and returns the validation result.
public bool Evaluate(Worksheet worksheet, int rowIndex, int columnIndex, ICellValue cellValue)
The worksheet.
rowIndexintIndex of the row.
columnIndexintIndex of the column.
cellValueICellValueReturns:Retrurns True if the rule is satisfied, else returns False.
Implements:
Override to implement rule-specific validation logic that determines whether the cell value is valid.
protected abstract bool EvaluateOverride(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.
public string ErrorAlertContent { get; }
The content of the error alert.
Implements:
Title text displayed in the error alert dialog when validation fails.
public string ErrorAlertTitle { get; }
The error alert title.
Implements:
Severity level of the error alert, determining whether invalid input is blocked or allowed.
public ErrorStyle ErrorStyle { get; }
The error style.
Implements:
Descriptive text in the input prompt explaining valid values or constraints to the user.
public string InputMessageContent { get; }
The content of the input message.
Implements:
Title text displayed in the input prompt when the user selects a validated cell.
public string InputMessageTitle { get; }
The input message title.
Implements:
Indicates whether an error alert is displayed when the user enters invalid data.
public bool ShowErrorMessage { get; }
The value indicating whether an input message should be shown.
Implements:
Indicates whether an input prompt is displayed when the cell is selected, guiding users on valid input.
public bool ShowInputMessage { get; }
The value indicating whether an input message should be shown.
Implements: