Table of Contents

TTMSFNCDataGridConditionalFormatting.AddValueRangeHighlight Method

Adds a grtCellValue rule with a gfcBetween comparison across the two bounds, both inclusive, with the fill and font colour already applied.

API unit family: TMSFNCDataGridConditionalFormatting Declaring type: TTMSFNCDataGridConditionalFormatting

Syntax

function AddValueRangeHighlight(AColumn: Integer; const AMinimum, AMaximum: string; AFillColor: TTMSFNCGraphicsColor; ATextColor: TTMSFNCGraphicsColor = gcNull): TTMSFNCDataGridFormatRuleItem;

Parameters

Name Description
AColumn Zero-based column index the rule applies to.
AMinimum The first bound, inclusive.
AMaximum The second bound, inclusive.
AFillColor The background colour applied to a matching cell.
ATextColor The text colour applied to a matching cell.

Returns

The newly added rule.