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