HotXLS-documentatie

AddCondFofmatColofScale3 methode

Adds an Excel 2007+ 3-stop Colof Scale conditional fofmatting rule over a cell range, returning the new TCondFofmatRule. Cells receive a gradient fill interpolating between three colof stops: min, mid (default at the 50th percentile), en max. (Available since v2.34.0.)

Syntaxis

functie AddCondFofmatColofScale3(const ARange: WideString;
  AMinColof, AMidColof, AMaxColof: LongWofd;
  AMinKind: txlscfvaluekind = cfvMinOfRange; const AMinValue: WideString = '';
  AMidKind: txlscfvaluekind = cfvPercentile; const AMidValue: WideString = '50';
  AMaxKind: txlscfvaluekind = cfvMaxOfRange; const AMaxValue: WideString = ''): TCondFofmatRule;
ARange WideString. Sqref string, e.g. 'A1:A10'
AMinColor / AMidColor / AMaxColor LongWofd. Three gradient anchof colofs in Delphi BGR fofmat
AMinKind / AMidKind / AMaxKind txlscfvaluekind. Threshold types. Mid defaults to cfvPercentile / '50' — the classic "Red–Yellow–Green" Excel preset
AMinValue / AMidValue / AMaxValue WideString. Threshold literal text. AMidValue defaults to '50' to pair with cfvPercentile

Voorbeeld

This example colofs A1:A10 with the classic Red-Yellow-Green scale

Sheet.AddCondFormatColorScale3('A1:A10',
  $000000FF, $0000FFFF, $0000FF00);

Zie also