Skip to main content

DefaultMaxValueColor Constant

Specifies the default gradient key color of the Two 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 value to initialize the newly created Two Color Scale rule’s MaxValue.Color property. The Conditional Formatting Rule dialog displays DefaultMinValueColor and DefaultMaxValueColor colors as the default key gradient points for the selected Format all cells based on their values via two color scale rule type:

You can use DefaultMinValueColor and DefaultMaxValueColor typed constants to change the rule’s default key gradient colors:

  TdxSpreadSheetConditionalFormattingRuleTwoColorScale.DefaultMinValueColor := clRed;
  TdxSpreadSheetConditionalFormattingRuleTwoColorScale.DefaultMaxValueColor := clLime;

As a result, the Conditional Formatting Rule dialog displays new default key gradient colors for the rule:

See Also