New to Telerik Document ProcessingStart a free 30-day trial

Conditional formatting rule that applies formatting when a cell value is less than a specified argument value.

Definition

Constructors

Initializes a new LessThanRule with the comparison argument and formatting to apply when the condition is met.

C#
public LessThanRule(string argument, DifferentialFormatting formatting)
Parameters:argumentstringformattingDifferentialFormatting

Methods

Evaluates whether the cell value is less than the argument value and returns 1.0 if true, 0.0 otherwise.

C#
protected override double ResolveComparables(IComparable cellValue, IComparable value)
Parameters:cellValueIComparable

The cell value

valueIComparable

The argument value

Returns:

double

Overrides: SingleArgumentComparisonRule.ResolveComparables(IComparable, IComparable)