Adds an Excel 2007+ 3-stop
Color Scale conditional formatting rule over a cell range, returning the new
TCondFormatRule. Cellerne får en gradientudfyldning, der interpolerer mellem tre farvestop: min, mid (som standard ved den 50. percentil) og maks. (Tilgængelig siden v2.34.0.)
function AddCondFormatColorScale3(
const ARange: WideString;
AMinColor, AMidColor, AMaxColor: LongWord;
AMinKind:
TXLSCfValueKind = cfvMinOfRange;
const AMinValue: WideString = '';
AMidKind:
TXLSCfValueKind = cfvPercentile;
const AMidValue: WideString = '50';
AMaxKind:
TXLSCfValueKind = cfvMaxOfRange;
const AMaxValue: WideString = ''):
TCondFormatRule;
| ARange |
WideString. Sqref string, e.g. 'A1:A10' |
| AMinColor / AMidColor / AMaxColor |
LongWord. Three gradient anchor colors in Delphi BGR format |
| AMinKind / AMidKind / AMaxKind |
TXLSCfValueKind. Tærskeltyper. Mid har som standard cfvPercentile / '50' — det klassiske Excel-forvalg "Rød–Gul–Grøn" |
| AMinValue / AMidValue / AMaxValue |
WideString. Threshold literal text. AMidValue defaults to '50' to pair with cfvPercentile |