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:
C#
public sealed class TextLengthDataValidationRule : NumberDataValidationRuleBase, IDataValidationRule
Inheritance: objectDataValidationRuleBaseSingleArgumentDataValidationRuleBaseNumberDataValidationRuleBaseTextLengthDataValidationRule
Implements:
Inherited Members
Constructors
Initializes a new TextLengthDataValidationRule with the specified comparison context.
C#
public TextLengthDataValidationRule(NumberDataValidationRuleContext context)
The context.
Methods
Evaluates whether the character count of the cell value satisfies the length comparison criteria.
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: