New to Telerik Document ProcessingStart a free 30-day trial

Conditional formatting rule that applies formatting when a cell's text value does not contain a specified substring.

Definition

Constructors

Initializes a new NotContainsRule with the text substring to exclude and formatting to apply when the condition is met.

C#
public NotContainsRule(string text, DifferentialFormatting formatting)
Parameters:textstringformattingDifferentialFormatting

Methods

Evaluates whether the cell's text value does not contain the specified substring 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)