Class CustomDataValidationRule
Validation rule using a custom formula expression that returns a boolean result determining cell validity.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Model.DataValidation
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public sealed class CustomDataValidationRule : SingleArgumentDataValidationRuleBase, IDataValidationRule
Constructors
CustomDataValidationRule(SingleArgumentDataValidationRuleContext)
Initializes a new CustomDataValidationRule with a formula expression that determines validity.
Declaration
public CustomDataValidationRule(SingleArgumentDataValidationRuleContext context)
Parameters
|
SingleArgumentDataValidationRuleContext
context
The context. |
Methods
EvaluateOverride(Worksheet, Int32, Int32, 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
worksheet
The worksheet. |
|
System.Int32
rowIndex
Index of the row. |
|
System.Int32
columnIndex
Index of the column. |
|
ICellValue
cellValue
The cell value. |
Returns
|
System.Boolean
Retrurns True if the rule is satisfied, else returns False. |