Skip to main content

DefaultMiddleValueColor Constant

Specifies the default gradient key color of the “Three Color Scale“ conditional formatting rule’s intermediate threshold value.

Declaration

const DefaultMiddleValueColor: TColor = clYellow;

Returns

Type
TColor

Remarks

The Create constructor uses this writable typed constant to initialize the newly created “Three Color Scale” conditional formatting rule’s MiddleValue.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 use 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:

See Also