Class
LessThanOrEqualToRule

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

Definition

Constructors

LessThanOrEqualToRule(string)

Initializes a new LessThanOrEqualToRule with the comparison argument.

Declaration

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

Parameters

argument

string

LessThanOrEqualToRule(string, DifferentialFormatting)

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

Declaration

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

Parameters

argument

string

formatting

DifferentialFormatting

Methods

ResolveComparables(IComparable, IComparable)

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

Declaration

cs-api-definition
protected override double ResolveComparables(IComparable cellValue, IComparable value)

Parameters

cellValue

IComparable

The cell value

value

IComparable

The argument value

Returns

double

Overrides SingleArgumentComparisonRule.ResolveComparables(IComparable, IComparable)