Click or drag to resize

ConditionalFormatRuleSetFormula Method

Sets a 'Formula' formatting condition to this conditional formatting rule.

Namespace:  GemBox.Spreadsheet.ConditionalFormatting
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1147
Syntax
public FormulaCondition SetFormula(
	string formula
)

Parameters

formula
Type: SystemString
The formula used to determine which cells to format (only cells for which the formula result evaluates to are formatted).

Return Value

Type: FormulaCondition
A FormulaCondition set to this conditional formatting rule which can be used to customize the formatting.
Exceptions
ExceptionCondition
ArgumentExceptionParameter formula is or Empty.
See Also