Base class for conditional formatting rules that compare cell values against a single argument, supporting both absolute values and formula-based arguments.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model.ConditionalFormattings
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public abstract class SingleArgumentComparisonRule : SingleArgumentConditionalFormattingRule
Inheritance: objectConditionalFormattingRuleConditionalFormattingDxfRuleSingleArgumentConditionalFormattingRuleSingleArgumentComparisonRule
Derived Classes:
Inherited Members
Constructors
Initializes a new SingleArgumentComparisonRule with the comparison argument and formatting to apply when the condition is met.
protected SingleArgumentComparisonRule(string argument, DifferentialFormatting formatting)
Methods
Evaluates the comparison rule for numeric cell values and returns 1.0 if the condition is met, 0.0 otherwise.
protected override double Resolve(ICellValue value)
The cell value
Returns:Overrides:
Evaluates the comparison between the cell value and argument value and returns 1.0 when the condition is satisfied, 0.0 otherwise.
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Comparables")]
protected abstract double ResolveComparables(IComparable cellValue, IComparable value)
Evaluates the comparison rule for text cell values and returns 1.0 if the condition is met, 0.0 otherwise.
protected virtual double ResolveText(TextCellValue cellValue)
The cell value
Returns: