HotXLS Belgeleri

AddCondFormatColorScale3 yöntem

Adds an Excel 2007+ 3-stop Color Scale conditional formatting rule over a cell range, returning the new TCondFormatRule. Hücreler üç renk durağı arasında enterpole eden bir gradyan dolgu alır: min, orta (varsayılan olarak 50. persantil) ve maks. (v2.34.0'dan beri mevcut)

Sözdizimi

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. Eşik türleri. Orta durak varsayılan olarak cfvPercentile / '50'dir — klasik "Kırmızı–Sarı–Yeşil" Excel ön ayarı
AMinValue / AMidValue / AMaxValue WideString. Threshold literal text. AMidValue defaults to '50' to pair with cfvPercentile

Örnek

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

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

Ayrıca bkz.