New to Telerik Document ProcessingStart a free 30-day trial

Base class for conditional formatting rules that compare cell values against a single argument, supporting both absolute values and formula-based arguments.

Definition

Constructors

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

C#
protected SingleArgumentComparisonRule(string argument, DifferentialFormatting formatting)
Parameters:argumentstringformattingDifferentialFormatting

Methods

Evaluates the comparison rule for numeric cell values and returns 1.0 if the condition is met, 0.0 otherwise.

C#
protected override double Resolve(ICellValue value)
Parameters:valueICellValue

The cell value

Returns:

double

Overrides: ConditionalFormattingRule.Resolve(ICellValue)

Evaluates the comparison between the cell value and argument value and returns 1.0 when the condition is satisfied, 0.0 otherwise.

C#
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Comparables")]
protected abstract double ResolveComparables(IComparable cellValue, IComparable value)
Parameters:cellValueIComparablevalueIComparableReturns:

double

Evaluates the comparison rule for text cell values and returns 1.0 if the condition is met, 0.0 otherwise.

C#
protected virtual double ResolveText(TextCellValue cellValue)
Parameters:cellValueTextCellValue

The cell value

Returns:

double