ClassTextLengthDataValidationRule
Validates that the character count of cell text meets specified comparison criteria.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model.DataValidation
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public sealed class TextLengthDataValidationRule : NumberDataValidationRuleBase, IDataValidationRule
Inheritance: objectDataValidationRuleBaseSingleArgumentDataValidationRuleBaseNumberDataValidationRuleBaseTextLengthDataValidationRule
Implements:
Inherited Members
Constructors
TextLengthDataValidationRule(NumberDataValidationRuleContext)
Initializes a new TextLengthDataValidationRule with the specified comparison context.
Declaration
public TextLengthDataValidationRule(NumberDataValidationRuleContext context)
Parameters
context
NumberDataValidationRuleContext
The context.
Methods
EvaluateOverride(Worksheet, int, int, ICellValue)
Evaluates whether the character count of the cell value satisfies the length comparison criteria.
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