ClassCustomDataValidationRule
Validation rule using a custom formula expression that returns a boolean result determining cell validity.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model.DataValidation
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public sealed class CustomDataValidationRule : SingleArgumentDataValidationRuleBase, IDataValidationRule
Inheritance: objectDataValidationRuleBaseSingleArgumentDataValidationRuleBaseCustomDataValidationRule
Implements:
Inherited Members
Constructors
CustomDataValidationRule(SingleArgumentDataValidationRuleContext)
Initializes a new CustomDataValidationRule with a formula expression that determines validity.
Declaration
public CustomDataValidationRule(SingleArgumentDataValidationRuleContext context)
Parameters
context
SingleArgumentDataValidationRuleContext
The context.
Methods
EvaluateOverride(Worksheet, int, int, ICellValue)
Evaluates the custom formula expression and returns true if the result is a boolean true value.
Declaration
protected override bool EvaluateOverride(Worksheet worksheet, int rowIndex, int columnIndex, ICellValue cellValue)
Parameters
worksheet
The worksheet.
rowIndex
Index of the row.
columnIndex
Index of the column.
cellValue
The cell value.
Returns
Retrurns True if the rule is satisfied, else returns False.
Overrides