HotXLS Belgeleri

AddCondFormatIconSet yöntem

Adds an Excel 2007+ Icon Set conditional formatting rule over a cell range, returning the new TCondFormatRule. Her hücre, değeri otomatik hesaplanan persantil eşiklerinde nereye düştüğüne göre, seçilen ailedeki 3, 4 veya 5 simgeden birini alır. (v2.34.0'dan beri mevcut)

Sözdizimi

function AddCondFormatIconSet(const ARange: WideString;
  ASetType: TXLSIconSetType): TCondFormatRule;
ARange WideString. Sqref string, e.g. 'A1:A10'
ASetType TXLSIconSetType. 17 temel Excel 2007 simge ailesinden biri — icsArrows3 / icsArrows3Gray / icsFlags3 / icsTrafficLights3 / icsTrafficLightsRimmed3 / icsSigns3 / icsSymbols3 / icsSymbolsUncircled3 / icsArrows4 / icsArrows4Gray / icsRedToBlack4 / icsRatings4 / icsTrafficLights4 / icsArrows5 / icsArrows5Gray / icsRatings5 / icsQuarters5. Bkz. TXLSIconSetType

Açıklamalar

Varsayılan eşikler, değer aralığını eşit persantil dilimlerine böler (3 simge → 0/33/67, 4 simge → 0/25/50/75, 5 simge → 0/20/40/60/80). Döndürülen TCondFormatRule.IconSet to override individual thresholds via SetThreshold, or to set Reverse / ShowOnly

Örnek

This example puts the "3 Arrows (Colored)" icon set over A1:A10

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

Ayrıca bkz.