Table of Contents

TTMSFNCDataGridConditionalFormatting.AddDateRangeHighlight Method

Adds a grtDate rule that highlights values falling in the explicit date range .., both inclusive.

API unit family: TMSFNCDataGridConditionalFormatting Declaring type: TTMSFNCDataGridConditionalFormatting

Syntax

function AddDateRangeHighlight(AColumn: Integer; AFrom, ATo: TDateTime; AFillColor: TTMSFNCGraphicsColor; ATextColor: TTMSFNCGraphicsColor = gcNull): TTMSFNCDataGridFormatRuleItem;

Parameters

Name Description
AColumn Zero-based column index the rule applies to.
AFrom First date matched, inclusive. Pass 0 for an open lower bound.
ATo Last date matched, inclusive. Pass 0 for an open upper bound.
AFillColor The background colour applied to a matching cell.
ATextColor The text colour applied to a matching cell.

Returns

The newly added rule.