Class SingleArgumentComparisonRule
Base class for conditional formatting rules that compare cell values against a single argument, supporting both absolute values and formula-based arguments.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Model.ConditionalFormattings
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public abstract class SingleArgumentComparisonRule : SingleArgumentConditionalFormattingRule, IPropertyValueProvider
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
|
System.String
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
|
System.String
argument
|
|
DifferentialFormatting
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
|
ICellValue
value
The cell value |
Returns
|
System.Double
|
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
protected abstract double ResolveComparables(IComparable cellValue, IComparable value)
Parameters
|
System.IComparable
cellValue
|
|
System.IComparable
value
|
Returns
|
System.Double
|
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
|
TextCellValue
cellValue
The cell value |
Returns
|
System.Double
|