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