ContainsRule
Class
Conditional formatting rule that applies formatting when a cell's text value contains a specified substring.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model.ConditionalFormattings
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
C#
public class ContainsRule : SingleArgumentConditionalFormattingRule
Inheritance: objectConditionalFormattingRuleConditionalFormattingDxfRuleSingleArgumentConditionalFormattingRuleContainsRule
Inherited Members
Constructors
Initializes a new ContainsRule with the text substring to search for and formatting to apply when the condition is met.
C#
public ContainsRule(string argument, DifferentialFormatting formatting)
Methods
Evaluates whether the cell's text value contains the specified substring and returns 1.0 if true, 0.0 otherwise.
C#
protected override double Resolve(ICellValue value)
The cell value
Returns:Overrides: