Pridá pravidlo podmienečného formátovania
Dátový pruh Excel 2007+ nad rozsah buniek, vrátiac nové
TCondFormatRule na doladenie na zastávku
Syntax
function AddCondFormatDataBar(
const ARange: WideString;
AColor: LongWord;
AMinKind:
TXLSCfValueKind = cfvMinOfRange;
const AMinValue: WideString = '';
AMaxKind:
TXLSCfValueKind = cfvMaxOfRange;
const AMaxValue: WideString = ''):
TCondFormatRule;
| ARange |
WideString. Reťazec Sqref, napr. 'A1:A10' alebo 'B2:C20' |
| AColor |
LongWord. Farba výplne pruhu vo formáte Delphi BGR (R je v nízkom bajte). Pre modrú výplň použite $00FF0000; pre zelenú $0000FF00 |
| AMinKind / AMaxKind |
TXLSCfValueKind. Typy prahov: cfvNumber, cfvMinOfRange, cfvMaxOfRange, cfvPercent, cfvPercentile, cfvFormula, cfvAutoMin, cfvAutoMax. Predvolené mapovanie min→cfvMinOfRange a max→cfvMaxOfRange zodpovedá predvoleným "automatickým" hraniciam pruhu v Exceli |
| AMinValue / AMaxValue |
WideString. Threshold literal (numeric text for cfvNumber/cfvPercent/cfvPercentile, A1-rozsah or vzorec text for cfvFormula). Ignored for cfvMinOfRange / cfvMaxOfRange / cfvAutoMin / cfvAutoMax |
Príklad
This example adds a blue data bar over A1:A10 using the default min/max-of-range bounds
Sheet.AddCondFormatDataBar('A1:A10', $00FF0000);
Pozri tiež
Tento príklad pridá modrý dátový pruh nad A1:A10 pomocou predvolených hraníc min/max-rozsahu