New to Telerik Document ProcessingStart a free 30-day trial

Conditional formatting rule that applies formatting when a cell value equals a specified argument value.

Definition

Constructors

Initializes a new instance of the EqualToRule class.

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

Methods

Evaluates whether the cell value equals the argument and returns 1.0 if true, 0.0 otherwise.

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

The cell value

Returns:

double

Overrides: ConditionalFormattingRule.Resolve(ICellValue)