Abstract base for numeric data validation rules that compare cell values against numeric boundaries using comparison operators.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model.DataValidation
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public abstract class NumberDataValidationRuleBase : SingleArgumentDataValidationRuleBase, IDataValidationRule
Inheritance: objectDataValidationRuleBaseSingleArgumentDataValidationRuleBaseNumberDataValidationRuleBase
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new NumberDataValidationRuleBase from the specified numeric validation context.
protected NumberDataValidationRuleBase(NumberDataValidationRuleContext context)
The context.
Methods
Compares the cell value against the validation arguments using the configured comparison operator.
Evaluates the numeric validation rule by comparing the cell value against the configured numeric boundaries.
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:
Properties
Second boundary value for range-based comparisons such as Between and NotBetween operators.
public ICellValue Argument2 { get; }
The second argument.
Comparison operator used to evaluate the cell value against the validation arguments.
public ComparisonOperator ComparisonOperator { get; }
The comparison operator.
Indicates whether the rule restricts input to whole numbers without decimal fractions.
protected virtual bool RequireWholeNumbers { get; }
The value indicating if the rule requires whole numbers as a result of the argument expression.