HotXLS 文件

AddCondFormatColorScale3 方法

在儲存格範圍上新增 Excel 2007+ 3 停駐點色階條件式格式規則,傳回新的 TCondFormatRule。儲存格依各自的三色漸層接收色彩

語法

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 字串, e.g. 'A1:A10'
AMinColor / AMidColor / AMaxColor LongWord. Three gradient anchor 色彩 在 Delphi BGR 格式
AMinKind / AMidKind / AMaxKind TXLSCfValueKind. Threshold types. Mid defaults 到 cfvPercentile / '50' — 傳統 "Red–Yellow–Green" Excel preset
AMinValue / AMidValue / AMaxValue WideString. Threshold literal 文字. AMidValue defaults 到 '50' 到 pair 使用 cfvPercentile

描述


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

範例