DefaultMaxValueColor Constant
Specifies the default gradient key color of the Three Color Scale conditional formatting rule’s maximum threshold value.
Declaration
const DefaultMaxValueColor: TColor = clYellow;
Returns
Type |
---|
TColor |
Remarks
The Create constructor uses this writable typed constant to intialize the newly created “Three Color Scale” conditional formatting rule’s MaxValue.Color property. The “Conditional Formatting Rule” dialog displays the DefaultMinValueColor, DefaultMiddleValueColor, and DefaultMaxValueColor colors as the default key gradient points for the selected “Format all cells based on their values via three color scale” rule type:
You can change the DefaultMinValueColor, DefaultMiddleValueColor, and DefaultMaxValueColor typed constants to change the rule’s default key gradient colors:
TdxSpreadSheetConditionalFormattingRuleThreeColorScale.DefaultMinValueColor := clRed;
TdxSpreadSheetConditionalFormattingRuleThreeColorScale.DefaultMiddleValueColor := clLime;
TdxSpreadSheetConditionalFormattingRuleThreeColorScale.DefaultMaxValueColor := clAqua;
As a result, the “Conditional Formatting Rule” dialog displays new default key gradient colors for the rule: