New to Telerik Document ProcessingStart a free 30-day trial

Validates that the character count of cell text meets specified comparison criteria.

Definition

Constructors

Initializes a new TextLengthDataValidationRule with the specified comparison context.

C#
public TextLengthDataValidationRule(NumberDataValidationRuleContext context)
Parameters:contextNumberDataValidationRuleContext

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)
Parameters:worksheetWorksheet

The worksheet.

rowIndexint

Index of the row.

columnIndexint

Index of the column.

cellValueICellValue

The cell value.

Returns:

bool

Retrurns True if the rule is satisfied, else returns False.

Overrides: NumberDataValidationRuleBase.EvaluateOverride(Worksheet, int, int, ICellValue)