New to Telerik Document ProcessingStart a free 30-day trial

Base configuration context for data validation rules that use a single argument expression for evaluation.

Definition

Constructors

Initializes a new instance of the SingleArgumentDataValidationRuleContext class.

C#
public SingleArgumentDataValidationRuleContext(Worksheet worksheet, CellIndex cellIndex)
Parameters:worksheetWorksheetcellIndexCellIndex

Initializes a new instance of the SingleArgumentDataValidationRuleContext class.

C#
public SingleArgumentDataValidationRuleContext(Worksheet worksheet, int rowIndex, int columnIndex)
Parameters:worksheetWorksheet

The worksheet.

rowIndexint

Index of the row.

columnIndexint

Index of the column.

Properties

Expression or value used as the primary validation criterion, which may be a literal value or a formula reference.

C#
public string Argument1 { get; set; }
Property Value:

The first argument.

Cell location where the validation rule is defined, used as the base reference for relative formula expressions.

C#
public CellIndex CellIndex { get; set; }
Property Value:

The index of the cell.

Controls whether empty cells bypass validation and are considered valid regardless of the rule.

C#
public bool IgnoreBlank { get; set; }
Property Value:

The value indicating if blank cells should be ignored.

Worksheet containing the validated cells, required for evaluating formula-based validation arguments.

C#
public Worksheet Worksheet { get; set; }
Property Value:

The worksheet.