HotXLS-documentatie

AddCondFormatIconSet methode

Voegt een Excel 2007+ Icon Set-regel voor voorwaardelijke opmaak toe over een celbereik en retourneert de nieuwe TCondFormatRule. Elke cel krijgt één van de 3, 4 of 5 pictogrammen uit de gekozen familie, op basis van waar zijn waarde valt in de automatisch berekende percentieldrempels. (Beschikbaar sinds v2.34.0)

Syntaxis

functie AddCondFormatIconSet(const ARange: WideString;
  ASetType: TXLSIconSetType): TCondFormatRule;
ARange WideString. Sqref string, e.g. 'A1:A10'
ASetType TXLSIconSetType. One of the 17 baseline Excel 2007 icon families — icsArrows3 / icsArrows3Gray / icsFlags3 / icsTrafficLights3 / icsTrafficLightsRimmed3 / icsSigns3 / icsSymbols3 / icsSymbolsUncircled3 / icsArrows4 / icsArrows4Gray / icsRedToBlack4 / icsRatings4 / icsTrafficLights4 / icsArrows5 / icsArrows5Gray / icsRatings5 / icsQuarters5. Zie TXLSIconSetType

Opmerkingen

The default thresholds split the value range into equal percentile slices (3 icons → 0/33/67, 4 icons → 0/25/50/75, 5 icons → 0/20/40/60/80). Gebruik de returned TCondFormatRule.IconSet to override individual thresholds via SetThreshold, of to set Reverse / ShowOnly

Voorbeeld

Dit voorbeeld zet de pictogrammenset "3 Arrows (Colored)" over A1:A10

Sheet.AddCondFormatIconSet('A1:A10', icsArrows3);

Zie ook