Class
BeginsWithRule

Conditional formatting rule that applies formatting when a cell's text value begins with a specified text string.

Definition

Constructors

BeginsWithRule(string, DifferentialFormatting)

Initializes a new BeginsWithRule with the text prefix to match and formatting to apply when the condition is met.

Declaration

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

Parameters

argument

string

formatting

DifferentialFormatting

Methods

Resolve(ICellValue)

Evaluates whether the cell's text value begins with the specified prefix 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)