Class
NotEqualToRule

Conditional formatting rule that applies formatting when a cell value does not equal a specified argument value.

Definition

Constructors

NotEqualToRule(string)

Initializes a new NotEqualToRule with the comparison argument.

Declaration

cs-api-definition
[Obsolete("This constructor is obsoleted, please use the one with formatting parameter instead.")]
public NotEqualToRule(string argument)

Parameters

argument

string

NotEqualToRule(string, DifferentialFormatting)

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

Declaration

cs-api-definition
public NotEqualToRule(string argument, DifferentialFormatting formatting)

Parameters

argument

string

formatting

DifferentialFormatting

Methods

Resolve(ICellValue)

Evaluates whether the cell value does not equal the argument and returns 1.0 if true, 0.0 otherwise.

Declaration

cs-api-definition
protected override double Resolve(ICellValue value)

Parameters

value

ICellValue

The cell value

Returns

double

Overrides ConditionalFormattingRule.Resolve(ICellValue)