<κλάση header="doc-nav" aria-label="Πλοήγηση τεκμηρίωσης">
Τεκμηρίωση HotXLS
<κλάση nav="doc-links">
Περιεχόμενα
Αρχική
Επισκόπηση
IXLSWorkbook
TCondFormat
<κλάση div="nav topic-quick-nav" aria-label="Topic shortcuts">
Αρχική
Περιεχόμενα
Επισκόπηση
AddCondFormatColorScale3 μέθοδος
<κλάση div="indent">
<κλάση div="txt">
Adds an Excel 2007+ 3-stop Color Scale conditional formatting rule over a cell range, returning the new TCondFormatRule. Cells receive a gradient fill interpolating between three color stops: min, mid (default at the 50th percentile), and max. (Available since v2.34.0.)
Σύνταξη
<κλάση div="indent">
<κλάση div="txt">
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;
<κλάση table="synd">
<κλάση td="syni">ARange
<κλάση td="synid">WideString. Sqref string, e.g. 'A1:A10'
<κλάση td="syni">AMinColor / AMidColor / AMaxColor
<κλάση td="synid">LongWord. Three gradient anchor colors in Delphi BGR format
<κλάση td="syni">AMinKind / AMidKind / AMaxKind
<κλάση td="synid">TXLSCfValueKind. Threshold types. Mid defaults to cfvPercentile / '50' — the classic "Red–Yellow–Green" Excel preset
<κλάση td="syni">AMinValue / AMidValue / AMaxValue
<κλάση td="synid">WideString. Threshold literal text. AMidValue defaults to '50' to pair with cfvPercentile
Παράδειγμα
<κλάση div="indent">
<κλάση div="txt">
This example colors A1:A10 with the classic Red-Yellow-Green scale
<κλάση pre="code">
Sheet.AddCondFormatColorScale3('A1:A10',
$000000FF, $0000FFFF, $0000FF00);
Δείτε επίσης
<κλάση div="indent">
<κλάση div="txt">
AddCondFormatDataBar
AddCondFormatColorScale2
AddCondFormatIconSet
TCondFormat / TCondFormatRule classes
<κλάση footer="reference-footer">Copyright © 2010-2026 losLab Software