ConditionalFormattingCollection.CreateValue(ConditionalFormattingValueType, String) Method
Specifies the minimum or maximum threshold value for the conditional formatting rule.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v24.1.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
ConditionalFormattingValue CreateValue(
ConditionalFormattingValueType valueType,
string value
)
Parameters
Name | Type | Description |
---|---|---|
valueType | ConditionalFormattingValueType | One of the ConditionalFormattingValueType enumeration values. |
value | String | A string that is the threshold value. |
Returns
Type | Description |
---|---|
ConditionalFormattingValue | The ConditionalFormattingValue object that defines the threshold value and its ConditionalFormattingValueType type. |
Remarks
If you use a formula to determine the threshold value (the valueType is set to ConditionalFormattingValueType.Formula), start it with an equals sign (=). The formula can include built-in spreadsheet functions. Note that use of relative references is not allowed.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the CreateValue(ConditionalFormattingValueType, String) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.