ClassSingleArgumentComparisonRule
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
SingleArgumentComparisonRule(string)
Initializes a new SingleArgumentComparisonRule with the comparison argument.
Declaration
[Obsolete("This constructor is obsoleted, please use the one with formatting parameter instead.")]
protected SingleArgumentComparisonRule(string argument)
Parameters
argument
SingleArgumentComparisonRule(string, DifferentialFormatting)
Initializes a new SingleArgumentComparisonRule with the comparison argument and formatting to apply when the condition is met.
Declaration
protected SingleArgumentComparisonRule(string argument, DifferentialFormatting formatting)
Parameters
argument
formatting
Methods
Resolve(ICellValue)
Evaluates the comparison rule for numeric cell values and returns 1.0 if the condition is met, 0.0 otherwise.
Declaration
protected override double Resolve(ICellValue value)
Parameters
value
The cell value
Returns
Overrides
ResolveComparables(IComparable, IComparable)
Evaluates the comparison between the cell value and argument value and returns 1.0 when the condition is satisfied, 0.0 otherwise.
Declaration
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Comparables")]
protected abstract double ResolveComparables(IComparable cellValue, IComparable value)
Parameters
cellValue
value
Returns
ResolveText(TextCellValue)
Evaluates the comparison rule for text cell values and returns 1.0 if the condition is met, 0.0 otherwise.
Declaration
protected virtual double ResolveText(TextCellValue cellValue)
Parameters
cellValue
The cell value
Returns