Table of Contents

TTMSFNCDataGridConditionalFormatting.AddValueHighlight Method

Adds a grtCellValue rule with the fill and font colour already applied.

API unit family: TMSFNCDataGridConditionalFormatting Declaring type: TTMSFNCDataGridConditionalFormatting

Syntax

function AddValueHighlight(AColumn: Integer; AComparison: TTMSFNCDataGridFormatComparison; const AValue: string; AFillColor: TTMSFNCGraphicsColor; ATextColor: TTMSFNCGraphicsColor = gcNull): TTMSFNCDataGridFormatRuleItem;

Parameters

Name Description
AColumn Zero-based column index the rule applies to.
AComparison The comparison operator to use.
AValue The reference value compared against the cell value.
AFillColor The background colour applied to a matching cell.
ATextColor The text colour applied to a matching cell.

Returns

The newly added rule.