Table of Contents

TTMSFNCDataGridConditionalFormatting.AddDateHighlight Method

Adds a grtDate rule bucketed by a relative date interval, with the fill and font colour already applied.

API unit family: TMSFNCDataGridConditionalFormatting Declaring type: TTMSFNCDataGridConditionalFormatting

Syntax

function AddDateHighlight(AColumn: Integer; AInterval: TTMSFNCDataGridDateInterval; AFillColor: TTMSFNCGraphicsColor; ATextColor: TTMSFNCGraphicsColor = gcNull): TTMSFNCDataGridFormatRuleItem;

Parameters

Name Description
AColumn Zero-based column index the rule applies to.
AInterval The relative date bucket the value must fall in.
AFillColor The background colour applied to a matching cell.
ATextColor The text colour applied to a matching cell.

Returns

The newly added rule.