Class BeginsWithRule
Conditional formatting rule that applies formatting when a cell's text value begins with a specified text string.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Model.ConditionalFormattings
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public class BeginsWithRule : SingleArgumentConditionalFormattingRule, IPropertyValueProvider
Constructors
BeginsWithRule(String)
Initializes a new BeginsWithRule with the text prefix to match.
Declaration
[Obsolete("This constructor is obsoleted, please use the one with formatting parameter instead.")]
public BeginsWithRule(string argument)
Parameters
|
System.String
argument
|
BeginsWithRule(String, DifferentialFormatting)
Initializes a new BeginsWithRule with the text prefix to match and formatting to apply when the condition is met.
Declaration
public BeginsWithRule(string argument, DifferentialFormatting formatting)
Parameters
|
System.String
argument
|
|
DifferentialFormatting
formatting
|
Methods
Resolve(ICellValue)
Evaluates whether the cell's text value begins with the specified prefix and returns 1.0 if true, 0.0 otherwise.
Declaration
protected override double Resolve(ICellValue value)
Parameters
|
ICellValue
value
The cell value |
Returns
|
System.Double
|