תיעוד HotXLS

מתודה AddCondFormatColorScale2

מוסיף כלל עיצוב מותנה של סולם צבעים עם 2 עצירות של Excel 2007+ על טווח תאים, ומחזיר את ה-TCondFormatRule החדש כדי שניתן יהיה לשפר את עקיפת ה-DXF Style של הכלל לפני שמירה. התאים מקבלים מילוי הדרגתי המקדים בין AMinColor (בסף המינימום) ל-AMaxColor (בסף המקסימום). (זמין החל מגרסה v2.34.0.)

תחביר

function AddCondFormatColorScale2(const ARange: WideString;
  AMinColor, AMaxColor: LongWord;
  AMinKind: TXLSCfValueKind = cfvMinOfRange; const AMinValue: WideString = '';
  AMaxKind: TXLSCfValueKind = cfvMaxOfRange; const AMaxValue: WideString = ''): TCondFormatRule;
ARange WideString. Sqref String, e.g. 'A1:A10'
AMinColor / AMaxColor LongWord. Gradient endpoint colors in Delphi BGR תבנית (R in the low byte)
AMinKind / AMaxKind TXLSCfValueKind. Threshold types — see TXLSCfValueKind
AMinValue / AMaxValue WideString. Threshold literal; ignored for kinds that auto-detect

דוגמה

דוגמה זו מצבעת A1:A10 מלבן לירוק על בסיס ערכי המינימום והמקסימום של הטווח

Sheet.AddCondFormatColorScale2('A1:A10', $00FFFFFF, $0000FF00);

ראה גם