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:
C#
public sealed class CustomDataValidationRule : SingleArgumentDataValidationRuleBase, IDataValidationRule
Inheritance: objectDataValidationRuleBaseSingleArgumentDataValidationRuleBaseCustomDataValidationRule
Implements:
Inherited Members
Constructors
Initializes a new CustomDataValidationRule with a formula expression that determines validity.
C#
public CustomDataValidationRule(SingleArgumentDataValidationRuleContext context)
The context.
Methods
Evaluates the custom formula expression and returns true if the result is a boolean true value.
C#
protected override 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.
Overrides: